Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
1answer
16 views

Get all Custom Post Types

I am creating a WP theme with a built in custom post type (and I am using WPAlchemy to add a couple of custom metaboxes). $theme_custom_metabox = new WPAlchemy_MetaBox( array( 'id' => ...
0
votes
2answers
28 views

Show different website layout if no sidebar added

I have a question about website layout with and without wp widges in sidebar. Here is the code i have for my registered sidebar. <?php if ( !function_exists('dynamic_sidebar') || ...
0
votes
0answers
23 views

Fully editable footer

I'm making a theme from scratch and I want to add a footer with editable stuff like copyright / social network / About author excerpt / some link. I looked around on google but I find answer who say ...
0
votes
1answer
25 views

Filter URL and shortcodes from the_excerpt

I just noticed a weird behavior on a theme I'm working on. If I have a post with just one link or shortcode, the_excerpt will print that URL or shortcode. But if I have some text in the post, below or ...
0
votes
1answer
14 views

Changes to template not showing up unless ?reset=1 added to URL

As title states, I added something to a template file: echo '<img src="'. get_site_url() . '/wp-content/themes/enfold/images/leverage.png" />'; But on firefox and IE, the addition won't show ...
-3
votes
0answers
13 views

How to create a drop down field in custom theme option menu? [on hold]

I am making a theme in wordpress and want to add some fields to the option menu example: dropdown,Text fields etc. but i want to do it using array like: $options = array ( array( "name" => ...
0
votes
1answer
17 views

Check if redirected from a specific page template

I have a page template, which redirects to the homepage using this: wp_redirect( home_url() ); Now, on the homepage is it possible to check if it has been redirected from a specific page template ...
0
votes
1answer
19 views

Wordpress pulling in random page themes

I have a website that has multiple custom templates -- a variety for pages and a couple for custom post types. However, WP is now screwing it all up. For instance: All of the pages that were setup ...
0
votes
1answer
31 views

Let user to add input fields on theme option page

I'm creating a Theme Option page for my own wordpress theme and I've been trying to create something like this on my option page It means my user(admin) can add any number of input fields (in this ...
1
vote
1answer
37 views

Prevent theme from activating [duplicate]

I am working on a theme that runs code only once on theme activation (using the after_switch_theme hook). I am wondering if it's possible to safely prevent my theme from being activated if certain ...
0
votes
2answers
17 views

wp_post->post_parent object returning 0

I'm developing a Wordpress theme and I've registered a new menu location (called primary menu) and am using a menu with it. In my menu, I have a page called "tier-2 page" under a page called "tier-1 ...
0
votes
0answers
23 views

Let users to add any number of input fields in the theme option page

I've been creating a custom settings page for my own theme according to this article. What I want to know is how to let users to add any number of input fields. Just like this image I have ...
0
votes
1answer
22 views

Following/tracing page construction through theme PHP

What tools and methods will allow me to figure out how a page is being constructed by WP? I have a mix of plugins that are involved in the theme, and starting with the code I can't begin to figure ...
0
votes
0answers
23 views

Iframes are not being showed in customized theme

I've build a customized theme with the client website layout based in twentyten but none of the iframes are being showed. An example can be seen in ...
1
vote
0answers
19 views

Add custom buttons with custom actions in Edit Post screen in WordPress?

I am creating something for a client and I have a Class that I created with a Custom Post Type called 'PuSH Feeds' and when the user adds a new post and publishes it they can then click on one of two ...
0
votes
1answer
18 views

Trouble in enquing all js files under certain directory

I am using _s theme .I have all js files under js folder.My code function _s_scripts() { $js_dir = get_template_directory_uri() . "/js/"; foreach(glob($js_dir.'/*.*') as $file) { $label = ...
0
votes
1answer
24 views

html5-reset theme does not show the image [closed]

I am started to create a custome theme based on the HTML5-reset theme that a downloaded from GitHub. before touching/modifying anything, just I tried to put an image under the get_header(); and above ...
0
votes
1answer
26 views

Custom HTML structure in wp_list_categories

I am trying to accomplish an Ajax navigation for the categories and for that I need the code to look something like: <ul> <li data-level="1">Parent Category</li> <li ...
0
votes
0answers
15 views

Display backend function to frontend?

Hello senior developers i have a problem to display to fontend.. //register settings function theme_settings_init(){ register_setting( 'theme_settings', 'theme_settings' ); } //add ...
0
votes
1answer
20 views

Plugin's required JS not being inserted in my theme

All my plugins and their necessary .js files aren't being inserted in my theme's head. The CSS files are being inserted ok, but not the .js files. Not sure what's wrong. When I switch to a default ...
1
vote
1answer
14 views

Wordpress empty Nav Menu error

i have created Multisite. i have assigned menu for the first sub domain while for the second sub domain i have not assigned Menu. i just enabled the Debug mode and got Following error: Notice: ...
0
votes
1answer
21 views

Managing Wordpress Theme

A Wordpress theme has following components: theme.zip file demo-content.xml PSD.zip file (contains files such as icon-blog.psd, icon-home.psd, integrity-blog.psd, ... renew-home.psd) Using WP ...
0
votes
1answer
28 views

How exactly *does* unit testing work for themes?

As the majority of material on unit testing focuses on plugin development rather than theme development, I've hit a stumbling block when trying it out for myself. I've installed PHPUnit, grabbed the ...
1
vote
1answer
26 views

Display a list of certain categories by ID

I have a list of custom taxonomy IDs like (1, 2, 3, 10). I want to display a list of these specified categories by names and each should have its childs like: Europe France Germany Africa ...
0
votes
1answer
12 views

How to add drop symbol to parent nav items which have child

I have a navigation system like this: As you can see I have two Parent Menus as "Projects" and Plans which they have some sub menus. Now when the result rendered I am getting a navbar like this: ...
0
votes
2answers
22 views

WordPress HTML5 Gallery Support - Convert HTML4 -> HTML5

As of WordPress 3.9, WordPress generates HTML5 Galleries if HTML5 is supported in the theme: add_theme_support( 'html5' ); Originally in my theme development I did not declare HTML5 support and ...
0
votes
4answers
70 views

Theming Using Bootstrap Glyphicons and WordPress Dashicons

I use a mixture of both Bootstrap Glyphicons and WordPress Dashicons in my WordPress themes. However, something which really bugs me is how the WordPress Dashicons don't seem to scale appropriately ...
-1
votes
2answers
63 views

Custom single template for a specific category

What is the best way (performance & code structure) to create a custom template for a WordPress Post, which belong to a specific category? I realized that you can’t just create single-catname.php. ...
0
votes
1answer
44 views

Postname permalink page not found error

Page not found error when using permalink ‘postname’setting.Some pages are working for example http://example.com/questions is working but pages like http://example.com/questions/something. This is ...
2
votes
1answer
161 views

Redirect Visitors to a Temporary Maintenance Page without Plugin

To prevent my visitors from seeing a broken version of my syite during a big maintenance and giving them a heads up on the updates, i will redirect them automatically to a temporary Maintenance Page ...
-2
votes
1answer
30 views

How to split the site's layout without damaging this layout? [closed]

I have a site: http://roomble.com and I need to migrate it to wordpress (to be particular, I need in the nearest perspective it's plugins and ability to login thgrough the social networks via ...
0
votes
0answers
7 views

Execute upgrade-theme with coding

I'm executing some functions remotely from xmlprc with wordpress. I would like to run upgrade-theme remotely for theme that I develop. Assume that wp knows there is new version of theme. ...
0
votes
0answers
19 views

Single page of CPT

I'm trying to create a single page of a CPT. My cpt: <?php // CONVENZIONI CPT + TAXONOMY function cpt_convenzioni() { $labels = array( 'name' => _x( 'Convenzioni', ...
0
votes
2answers
49 views

Custom Post Type Permalink Page Not Found

I've been wasting hours and hours trying to solve a permalink issue with custom post types. It keeps returning page not found (404). When I use the default permalinks, it works, but when I switch to ...
0
votes
0answers
12 views

Custom upload option get an error. (WordPress)

I have successfully created front-end upload option for the users. By following this tutorial. But, When I upload the images it's getting an error. I had enough to goggling now. Below is my codes, ...
0
votes
1answer
43 views

Get author meta data with no published posts in author.php?

Unfortunately the following codes only echo the spcefic default and custom author datas if the author has at least one published post :( <?php the_author_meta('description'); ?> <?php ...
0
votes
1answer
22 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
-1
votes
1answer
24 views

Theme with Isoptope after activation in new install not working well [closed]

Hi I'm developing a theme with Isotope (masonry mode) and everything works well in the master/development location of WP. But if I take this theme and I activate it in a new installation of WP (same ...
0
votes
1answer
29 views

How to migrate the menu from the site on my own theme in Wordpress?

I'm a novice at WordPress topic and now I'm trying to figure out how to migrate the part of the design (I've decided to begin with navigation bar menu on the top) on this site to my own site based on ...
1
vote
3answers
158 views

Rewrite Question Mark in Post Template with URL Parameter for clean URLs

I use following code (Source) to change the single post template via url parameter: function sjc_add_query_vars($vars) { return array('template') + $vars; } add_filter('query_vars', ...
1
vote
1answer
57 views

The problem with Wordpress Importer

I've tried many times to upload theme-unit-test-data.xml from http://codex.wordpress.org/Theme_Unit_Test But when I'm trying to upload this file in WordPress Importer it gives me an error saying: ...
0
votes
2answers
30 views

What might cause a featured image not to display?

I'm writing a child theme for the editr theme and the featured image is not displaying for a new post. The featured images do display for demo content. For the new post, the following markup is ...
0
votes
1answer
32 views

Using wp_add_inline_style without a stylesheet

I need to add custom inline styles to the header of a custom theme I'm creating. I've come accross the wp_add_inline_style() function, which works but doesn't really suit me as it depends of a ...
0
votes
1answer
27 views

Why is including all your files within a theme folder important?

Alright, I know it is important. It keeps things organized and allows you to port your theme over pretty quickly without any problems. However, I have another developer who does this frequently, ...
1
vote
1answer
38 views

How to reorganize the items returned by wp_list_comments()?

I'm new to WordPress theme development and learning by building a new theme of my own. I want to reorganize the items returned by wp_list_comments(). I created comments.php in my theme folder and it ...
0
votes
0answers
17 views

Allow users to label or classify or group posts accoring to their own criteria

Is it possible to allow individual users to group posts according to their own personal classifications. Say one user wanted to class groups by read and unread ... or 'to read' or 'shared' etc. ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
0
votes
0answers
55 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
1answer
38 views

Specify Image dimensions

i ran a performance report for my website (gt metrics) and i realize the image dimensions are not set and i missed to specify height and width attributes. Basically the theme had already some images ...
0
votes
0answers
25 views

Custom text in header.php as page of edit field

I been creating a template from scratch in wordpress and now I have a template header with a image in it a text/ subheader text. And below that all some info text. What I want is that I can change ...