Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (15)

0
votes
0answers
27 views

wp query custom orderby not custom field

I am working on a products archive page where I show 20 products on each page with pagination. Each product's price is calculated by a formule which gets his parameters by data saved in the database. ...
0
votes
1answer
33 views

Undefined index: custom_sidebars

I am implementing custom sidebars on a theme I am developing. Everything works fine when I add new custom sidebars. However, when if I remove these new added custom sidebars I get the error Undefined ...
0
votes
1answer
47 views

Add data-id attribute to child page links

The should be simple but I just can't figure it out nor find an answer. I need to add a data-id attribute to the <li> parent container of the respective child page <a> links. The HTML is ...
0
votes
0answers
8 views

Default widget for custom theme [duplicate]

I'm Currently developing some themes, in this theme, I need to make default widget, so when user activate my theme, the widget is automatically activated in the sidebar. I know I just can place the ...
0
votes
1answer
77 views

Custom Post Type

I have the following code that brings in 3 posts or project posts; But I'd like it to show only posts form the current post category; <?php get_header(); ?> <article class="post"> ...
0
votes
1answer
17 views

Is there a way to easily manage Project options (custom-fields)

Im currently rocking the Fluxus theme on a website for a client of mine. The theme offers project options (custom fields) where you could add in information about your artwork. As my client has ...
0
votes
0answers
47 views

Empty Woocommerce Shop page Cart

I need to clean/remove/empty my cart from items added on the shop and single product page. This is not on the cart page. This cart counter is added with this code under functions.php: <?php ...
0
votes
1answer
24 views

How to edit plugin's html? [closed]

Hello Dear Wordpress Developers, I'm using Awesome Sticky Header by DevCanyon plugin on my website. I want to edit this plugin's html. Because with plugin's settings only thing that I can add is ...
2
votes
1answer
35 views

Modifying loop on a custom page, strange behaviour

I want to setup a custom page on my site that pulls in posts from only one category. I've taken my main blog page template, duplicated the file and assigned it as a template to my new page. I've then ...
0
votes
0answers
19 views

Custom options for WordPress sidebars

I am curious if it is possible to add custom options for each sidebar on the widgets page. Something like this (the part with the "Mobile" option): I'm having trouble finding a hook or action that ...
0
votes
0answers
20 views

Add Postbox for Featured Image Caption in wp-admin/post-new.php

I'm newbie here. I want to add postbox / meta box in my wp-admin/post-new.php page. Someone please help me. Last days i have try to search it in any tutorial, but i cannt solve it. I try to modify ...
0
votes
0answers
8 views

How to show only certain Level depths in Custom Post Attributes

I have created a custom post type named Notes. And there are many pages having childrens, grand childrens , grand grand childrens. Now whenever i try to add new grand children in Page Attributes i See ...
0
votes
0answers
10 views

WordPress Custom Widget Media Upload

OK I am not a programmer and after reading lots of tutorials I have managed to make one custom widget that just works with texts. Now in this code of mine I want to make a media uploader. Can anybody ...
5
votes
1answer
63 views

.maintenance and maintenance.php also in multisite install?

I would like to customize the standard maintenance page which gets shown during plugin updates. For single sites the process is clear to me. Putting a maintenance.php into /wp-content. But how does ...
0
votes
1answer
28 views

get_the_term_list without specific category

I am using : $term_link = get_the_term_list($post->ID, 'portfolio_category', '', '<br />', ''); to get the category and link to it. There is any way to get all category despite specific ...
1
vote
0answers
36 views

polylang + category/tag custom language link

under wordpress user can define url part for categories/tags, e.g., page.com/category/some-cat where category is user defined string part. Is there a way to define "category" (same goes for tags) for ...
1
vote
0answers
44 views

Filtering *out* a taxonomy from the admin post list

I've got a custom post type 'Speakers' that, after some time, are added to a custom 'archive' taxonomy so that they can be sorted into different sections of the site. I'd like a way to hide any ...
1
vote
1answer
24 views

Wordpress blog post url on category page

My Wordpress theme (Big Point) allows me to showcase a list of posts by category. I have set the format of my posts with a 'documents' category to all be 'links' and when I choose the 'link' format ...
1
vote
1answer
33 views

Auto login from custom registration form

I am trying to login a user from custom user registration form. My Code for Custom user Register is function register_user($data) { $userdata = array( 'user_login' => ...
0
votes
0answers
36 views

select metabox not saving selection

The code below reside in my plugin.php file, the select box populates fine from the options text area but does not save the chosen value. do not understand why. <p> <?php ...
0
votes
0answers
13 views

Is using categories for site structure a bad solution

I've been thinking about a current site structure implementation that relies on categories to build out the menu structure and the category template to render site content. As categories can change ...
0
votes
0answers
16 views

Metabox values are empty on POST

I've created a metabox for my custom posttype for a shopping plugin. But right now I have some troubles saving the data. This is my metabox view: function wpt_products_price() { global $post; ...
0
votes
2answers
41 views

Custom Post Type doesn't use single.php or single-{custom_post_type}.php

I tried to set up a custom post type in Wordpress, and everything worked just fine. Until displaying a single post from my custom post type. First it didn't automatically use the single.php (as it ...
0
votes
0answers
12 views

Wordpress field group post

I am trying to pull images from a field group I created in Wordpress. First I created a new field group. I then created a new row with the name: witb-icons and field type: loop. Then I created a new ...
0
votes
0answers
19 views

Cant edit custom post type in WordPress dashboard

i'm working with a WordPress site developed by someone else , when i login to dashboard and try to edit any custom post type that takes me to blank page for example there is a post type news and when ...
0
votes
1answer
60 views

Send notification to the admin when new custom post is submitted

I have a cpt called "auto" and i make a frontend form to create new post with "pending" status. After the post submission i would receive an email with a notification of the new post. function ...
0
votes
0answers
20 views

Changing the body of mail sent to new user registration

I am practically new in this community / forum, I hope to be as clear as possible about this question. I would like to change the body of the email sent to new users registered on my site, since only ...
0
votes
0answers
29 views

Custom drop down meta box not saving

I'm really struggling with my drop-down meta box. I created a custom post type, and am in the midst of creating shortcodes for recent posts, all posts and now featured posts. I created a custo ...
0
votes
1answer
61 views

Static page not working

First, context: I am not developing a theme, I am not mucking around with PHP. All I wanted to do was throw up a quick temporary WordPress site in a few minutes, paste my content in, and call it "good ...
0
votes
0answers
17 views

Move only new blog posts to sub directory?

Currently my blog posts are not under a sub directory : www.example.com/blogpost1 www.example.com/blogpost2 etc.. Going forward I want all blog posts to be: www.example.com/blog/blogpost3 ...
0
votes
1answer
52 views

Child Theme problems

I have a Premium WordPress theme that I created a child theme on. I can change the regular WordPress php pages and the css on the parent theme inside the child theme with no problems. Inside the ...
0
votes
0answers
18 views

Custom Post Type URL Rewrite

I am looking to create the following URL structure for a post type, /%post_slug%-blah/, and have an archive URL of /blah/. I can create this by doing custom rewrite rules, setting a post_type_link ...
0
votes
1answer
27 views

Menu not appearing in custom theme

I made a custom theme, but the menu is not showing in appearance section. I created a separate function file named function.php and the code is: add_theme_support( 'menus' ); function ...
0
votes
1answer
27 views

Customizing individual images on posts

So I'm trying to customize the output of single image in my posts, adding custom divs and classes. I found a good tutorial online here - How to wrap every image in a post with a div? The function ...
0
votes
2answers
374 views

How to change in customizer the “site identity” tab required capabilities

I'm building a multisite in which site admins have no "manage options" capability. The problem is that withut this cap they cannot see the "site identity" tab in the customizer, where they can change ...
0
votes
1answer
36 views

Moving wp-content folder

I want to move wp-content folder out of wordpress installation folder. I have set define('WP_CONTENT_DIR', '/opt/deployer/wordpress/wp-content' ); in wp-config.php file. But themes stopped working ...
0
votes
1answer
99 views

$wpdb->insert inserting two rows in database

Hi i am trying to insert data in database but $wpdb->insert insert two rows. my code for insert data is global $wpdb; $tablename = $wpdb->prefix . '<TABLE NAME>'; for ($i = 0; $i < ...
0
votes
0answers
11 views

How to create more than 3 screens in OptimizePress 2.0?

I want to create a landing page on OptimizePress and I have trouble in creating structure of landing page. Can’t create more than 3 screens in my small project, in constructor all good but in the ...
3
votes
0answers
47 views

Page load requires a trailing “/”

I have a new problem today which I didn't have yesterday. Nothing in my code had changed, which is the most confusing part. (Which means the error maybe started before some kind of cacheing?) None ...
0
votes
1answer
33 views

How to let the user create a selection of categories via the backend

Consider this: I've got a custom post type 'portfolio' these posts, or "portfolio items" all have several categories such as: "photography", "concepting", "branding" , "clientA" , "clientB" etc. Now ...
1
vote
0answers
19 views

How do I copy all “extra” data (menus, widgets, etc) from one theme to another?

I have two copies of a theme I'm developing up on my site (one was the existing file structure when I got started; the other is now set up to update automatically via git for a more sane development ...
0
votes
0answers
14 views

How to get all the posts to a image (media)?

I would like to fetch all the posts in which a particular image is used. Lets say image_xya.jpg is attached in following articles- Article 1 Article 2 Article 3 Now I would like to display all ...
0
votes
0answers
11 views

Page 2 shows same posts as on homepage

I am using Genisis Framework and eleven40 pro theme. And created a static homepage to remove the grid from the homepage everything was going fine but all of a sudden when i clicked on "page 2" it ...
0
votes
1answer
18 views

Static front page has page url not site url

I have a custom post type being used as a static page. My site url redirects to www.mysite.com/slug/my-page-title but I want it to stay www.mysite.com
0
votes
1answer
67 views

Order Taxonomy Term by date created

Trying to get the order of my custom query to display by Date created. Is this even possible with this query? Can you do a custom order? thanks for the help <?php $faq_cat_terms = get_terms( ...
0
votes
0answers
176 views

Customizing Woocommerce Product in Shop Page

I'm very new in woocommerce Customization. how can i change woocommerce shop page html structure for products to fit my own design. Please can anyone make clear how could i convert woocommerce html ...
0
votes
0answers
52 views

Woocommerce variable product doesn't save the field data

I'm trying to make this post meta into variable product meta, but it doesn't save the data! I changed `// Meta add_action( 'woocommerce_product_options_general_product_data', array( $this, ...
0
votes
1answer
68 views

How can I select a primary category?

I'm looking for a plugin or suggestion on how to select a primary/main (custom taxonomy) term in a custom post type. For example, I'm developing a Wordpress website for Musicians. I have a custom ...
1
vote
0answers
25 views

How to get Related Custom Posts?

So i am having an issue where i try to get the latest posts but also the related one from Custom Post Format - Video. Didnt see anywhere this solution/tut, is it even possible, i guess it is. I just ...
0
votes
0answers
15 views

How do I display continuous loop of multiple (4) previous adjacent posts while viewing the current post

I found a great article that enables me to display previous 4 adjacent posts here: Getting the Next and Previous Posts Titles in the Sidebar? @sorich87's explanation works great for me on my website. ...