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

learn more… | top users | synonyms

0
votes
1answer
695 views

How to make Isotope and Wordpress work together?

I am trying to make my Wordpress theme using Isotope plugin. http://isotope.metafizzy.co/ So far, I have such a result after doing that was suggested: I believe that Isotope Masonry should not ...
0
votes
1answer
672 views

Wrong path for theme assets

I'm working on a WordPress project, starting from Mark Jaquith's WordPress-Skeleton repository, using MAMP. I cloned the repo, updated the WordPress submodule, created a database and updated the ...
0
votes
2answers
391 views

Passing postid of Testimonial Custom Post in Shortcode Parameter

I am trying to create Testimonial custom post and display using shortcode function create_post_type() { register_post_type( 'testimonials',//new post type array( ...
1
vote
1answer
381 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
1
vote
1answer
21 views

Custom page template with custom fields

I need to create a page template that has an image and text with a common style. The image url must be set using a custom field (or something like it) and left aligned to the page title and content. ...
0
votes
0answers
3 views

Custom blog posts page not printing existing posts

I'm creating a custom theme that the blog posts won't appear in the front-page, but in a Blog page. I've created pages called Home and Blog, and set the Reading config to make Home my front-page and ...
2
votes
3answers
2k views

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or, more ideally $my_query = ...
0
votes
0answers
29 views

Hide Text when check box option is ticked in customizer?

How I hide the Head Text which is "Magna Aliquam" when "Hide Head Text" checkbox is checked and show when the checkbox is unchecked. Below is my code, but I'm lost. Any help would be appreciated ...
0
votes
1answer
449 views

Add content after get_header

I'd like to add content directly after the div#main (end of header.php) and before /div#main (beginning of footer.php). I'm using an own child-template (of twentythirteen), that contains only ...
0
votes
1answer
14 views

Theme Check errors of theme code

We are receiving these errors while we check out theme using ThemeCheck. We never seen this before and note sure what they mean or how to solve them. Can anyone so kind to tell us about these and some ...
0
votes
1answer
1k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
0answers
12 views

CSS won't style output of wp_nav_menu() correctly

I'm tyring to create a theme with a horizontal menu that is dynamically streched to fill the container element. I use wp_nav_menu() to fetch a menu from the backend and style it via CSS. Here some ...
0
votes
1answer
24 views

How can I display and excerpt of all pages with a meta_key and meta_value on index.php?

I need to create some pages with a custom field called categoria-pagina so I can display a list of these pages and their excerpt on my theme's index.php. I have already tried the code bellow, but if I ...
0
votes
0answers
37 views

How to retrieve sticky post with Visual Composer's loop builder?

So I have a simple custom shortcode function build under Visual Composer with vc_map. <?php /** * Blog Posts * */ if( function_exists( 'vc_map_get_attributes' ) ) { $atts = ...
0
votes
1answer
824 views

Custom theme won't use search.php

I have a custom searchform.php and search.php in my theme. However, when searching for something all I see is the front page (with mysite.com/?s=something in the adressbar). I use a filter to make ...
2
votes
1answer
43 views

Don't understand why theming is so strange and twisted [on hold]

What I'm asking you here is not a technical question, but more a philosophical one. I firstly started developing themes for a small new cms that I also contributed on github that has a great ...
0
votes
2answers
827 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 ...
1
vote
1answer
24 views

max_input_vars: how many am I using?

I'm processing a large amount of Options in a Wordpress theme. I want to ensure I keep below the default 1000 before hitting a max_input_vars error. Is there a way to test how many 'input_vars' I'm ...
2
votes
2answers
2k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
5
votes
2answers
2k views

How to remove the Theme Customization Button from the dashboard and themes options page?

In my Wordpress theme that I've currently been building I do not take advantage of the Wordpress Theme Customization API. As much as I would like too, I've invested far too much time into my own ...
0
votes
0answers
25 views

Is there a hack for using is_page() within the function.php file?

I've created a function in my functions.php that's called when the submit_form event is fired on the front-end. Here is the code: add_action( "wp_ajax_nopriv_submit_form", "submit_my_form" ); ...
3
votes
3answers
3k views

How to remove duplicate link from add_menu_page

In the theme admin menu below, the "MyTheme Menu Label" is being duplicated twice on the sidebar menu, once for the main menu link and again for the first submenu link. How can I remove the 2nd ...
0
votes
1answer
61 views

Theme check: Missing a text-domain

I'm using following code to display the number of comments: printf(_n('1 comment', '%1$s comments', get_comments_number()), number_format_i18n( get_comments_number() ), 'text-domain' ); Is there ...
0
votes
0answers
12 views

How to upload theme: Option Tree WordPress Theme Check Error

I am having a little problem uploading my theme to wordpress as the initial theme check fails with the below error.. I have integrated Option Tree into my team. But WordPress doesn't accept until the ...
0
votes
0answers
31 views

Theme Customizer : how to create multiple-level panel

Is there a way to create deep-level sub Panel in Theme Customizer(like roots of plants) ? My theme that I have been developing seem to be more complicated. I think that if we can create deep-level sub ...
0
votes
0answers
19 views

Best practice in version controlling (git) a whole wp site [on hold]

What is the best practice in version controlling a whole wp site, template files, plugins and Page contents? We are using these theme framework: Roots / sage Underscores Genesis I am also ...
0
votes
0answers
11 views

How to list the scripts and styles enqueued for a certain page?

How do I get all the scripts and styles used on a certain WordPress page. I would like to see the following, Name of script/style URL to script/style Version of script/style And if a certain script ...
0
votes
0answers
5 views

Auto update self hosted theme – always create “download” directory

I use this plugin to auto update my theme: https://github.com/jeremyclark13/automatic-theme-plugin-update Everything works but always in update process was deleted my old theme and created updated ...
0
votes
2answers
920 views

Passing array in add_option()

I have to create a option page in my custom theme wordpress. here is is a sample of code <?php function bguru_register_settings(){ $default_options=array( ...
0
votes
1answer
394 views

Custom Wordpress Theme: Publish Date and Display Date for posts right beside each other

What's currently happening is that for posts that have an 'update' time, the original publish and editor dates are rendering side by side (with no extra information in between, or even a space for ...
0
votes
2answers
618 views

How to use get_template_part instead of include_once?

I'm including a file by include_once: include_once( trailingslashit( get_stylesheet_directory() ) . '/recaptchalib.php' ); However I get warning from theme check plugin: INFO: The theme appears to ...
0
votes
0answers
27 views

Theme files encoded/converted to random numbers and letters. Is it possible to fix it?

I've been working on this theme for a few months now, locally, and today, I opened up the project and some files were "encoded" into random letters and numbers. Not all of the files, just a few, but ...
0
votes
2answers
31 views

Create fixed static pages

I have inside a theme two important static pages. One is a confirmation page (after signing up for a newsletter) and the other one is a thank-you page. I am using these in various functions and ...
0
votes
0answers
33 views

Woocomerce adding items to cart from a share cart url? [on hold]

I think I need help in here, Im not really sure if I need to set the session manually or it will set automatically while adding items to woocommerce cart, lets consider the following: ...
2
votes
2answers
488 views

How to allow admins to create a sidebar from the admin

I'm creating a WordPress theme and I've noticed that a lot of premium themes allow the users to go to Appearance->Sidebars and create a new Sidebar by simply giving it a name. The user can then Go to ...
0
votes
0answers
11 views

How to separate website pages from the home page and make custom?

I have installed a theme on my wordpress and published some new links to my navigation. Until now i have my main "home page" customized and i want to costomize the next page "our products". But all my ...
1
vote
1answer
22 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
12
votes
3answers
10k views

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two template files (located in the theme folder)? ...
0
votes
0answers
10 views

Problem with updating theme. Unlogged user sees a month-old version

Currently I am developing a theme and I have a big problem with displaying its earlier version. All changes that I am doing are visible only if I am logged. In other words, visitor sees a month old ...
0
votes
1answer
15 views

Display tab title as 'blog tagline | blog title'

I am currently displaying my title liek this <?php wp_title( '|', true, 'right' ); ?> it works fine for every page besides home page where tab currently says Blog title | Blog tagline is there a ...
0
votes
0answers
23 views

How to create a “menu item” on the theme customize screen?

My question is, how do I create a menu item as seen below but on the theme's menu customize page? "Theme Menu Options" Show's up here, But it does not show up here, Here is the code I used to ...
0
votes
0answers
21 views

Where to put wp_head() when using switch_to_blog()

Where should the call to wp_head() be in my case. I'm using switch_to_blog() in order to keep one consistent header with its own widgets and menus across all multisites. If I call wp_head() in ...
1
vote
2answers
643 views

Child theme CSS file is not loading background image

Hey guys I'm developing a child theme, I've created a style wich loads a background, I've created the images folder in my child theme as well. most of the styles are being loaded as planned, this one ...
0
votes
1answer
318 views

How to add a download link to a movie from WP media library?

All, I'm creating a custom theme for WP and it has some pages that play videos from WP media library with an HTML5 player. I wanted to also have a link next to the player to allow the users to ...
0
votes
0answers
12 views

how to add recaptcha to a theme built using redux

i installed this theme(http://themeart.co/free-theme/ta-pluton/) and it works great! i need to add re-captcha field to contact from.theme option got contact form settings how to add this option to ...
0
votes
2answers
37 views

static front page ONLY for certain themes?

A theme I am developing depends on there being a static front page. However, there seems to only be one global option to change if front page is static. So when I go to preview the theme, it won't ...
0
votes
1answer
27 views

Woocommerce Product attribute not imported with wordpress Importer [closed]

I used the WordPress Importer plugin and successfully imported all content but woocommerce product attributes are not imported. Tried a few different tests, and few different servers. Same result. ...
0
votes
1answer
693 views

How to use WP switchEditors.switchto(this) JS function in your own script?

I have a tab switching theme that lets the user choose 3 editing modes when adding new pages (HTML and Visual- these are WP defaults and the new Syntax mode using Code Mirror). I have issues when ...
0
votes
0answers
17 views

How do I handle styling between SASS and theme options?

I've been looking into leveraging SASS to handle styling my themes and the thought of storing various styles in variable to be used across the site is really helpful! Eg. I am able to store the ...
-1
votes
3answers
94 views

Next Post Link not working with parameters to restrict to same term

I am using next_post_link() , and I want to use the parameters shown in the documentation to restrict it to go to the next post with the same term for a custom taxonomy called "years". The line I am ...