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

learn more… | top users | synonyms

0
votes
1answer
57 views

WordPress 3.9 two menus in same position?

I have a new WordPress theme and I want to add extra menu, but as WordPress 3.9 allows only one menu to add in one position/places in theme? How can I add two menus in one position? I purchased the ...
0
votes
1answer
37 views

Some doubts about how the main query and the custom query works in this custom theme?

I am pretty new in WordPress theme development and I'm not so into PHP (I came from Java and C#) and have the following situation in this custom theme As you can see in the homepage I first show a ...
0
votes
1answer
23 views

Incorrect search results in search.php – issue triggered by using `define('BodyID', 'search'); the_post();` in search.php

I have a problem where the page title is not picked up in search results. I've narrowed the problem down to the following line of search.php in my custom theme. define('BodyID', 'search'); ...
1
vote
2answers
261 views

Get url of thumbnail from the media uploader

I want to select image from the WordPress 3.5 media uploader. I can get the image URL with the following code, but it gets the full size image. I want to get the thumbnail image url,how can I get ...
0
votes
3answers
55 views

Exclude posts from homepage having a specified tag

I am pretty new in WordPress development and I am trying to implement this custom theme that handle the so called featured posts As you can see in the posts area of the homepage I have the Articoli ...
0
votes
1answer
9 views

// File Security Check from WooCommerce [duplicate]

// File Security Check if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename($_SERVER['SCRIPT_FILENAME'] ) ) { die ( 'You do not have sufficient permissions to ...
0
votes
2answers
51 views

How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?

I am pretty new in WordPress theme development and I have the following doubt about how show posts into a page. I have this page belonging to an old custom legacy blog that I am build again using ...
1
vote
2answers
457 views

Custom header images won't appear when set to random

I'm using a custom theme, developed from Boilerplate (some time ago). I noticed that the header images work fine when set statically, but fail to appear when set to random. I tried switching themes, ...
0
votes
4answers
292 views

How to show single post page as home page

I want to start a funny images website but I have come across a dilemma. I want the website to display 1 post ( not the thumbnail) but the full post on the home page. (the most recent post). Similar ...
4
votes
4answers
321 views

Any walker causes blank menu?

Using the following, or any other custom Walker_Nav_Menu seems to cause a blank navigation menu, I tried specifying the default to make sure I wasn't going crazy yet it still blanks the output... Any ...
2
votes
1answer
62 views

What is best practice for writing/using custom PHP classes in a theme?

I want to use a custom PHP class in my theme, however I am not sure where to add it. Is there best practice used by the community for including PHP classes with a theme or is that an individual ...
0
votes
1answer
23 views

Generate activation url

For my registration I am using custom registration form.It works fine.It sends email with username and password. What I am looking I want to generate url so that when user click it automatically ...
0
votes
1answer
37 views

What exactly do this function declared into functions.php file of a WP theme?

someone can help me to understand what exactly do this function declared into the functions.php file of a theme? function exclude_featured_tag( $query ) { if ( $query->is_home() && ...
5
votes
1answer
54 views

Get entered value of customiser field for live preview

As per the codex, this question an probably any tutorial on the theme customiser out there, you get the value of a customiser field with the following code: ( function( $ ) { //Update site ...
0
votes
1answer
25 views

What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?

I am pretty new in WordPress theme development and I have the following doubt. I am working on this custom theme: http://lnx.asper-eritrea.com/ Into this website upper horizontal main menu I have a ...
0
votes
0answers
13 views

Some doubts about the WP development IDE, how to obtain the IDE code assistance? [duplicate]

I am pretty new in WordPress theme\plugin development (I came from Java and C#) and I have the following doubt about the IDE and how to correctly handle the WordPress development process. My main ...
0
votes
2answers
1k views

CSS not updating in browser when I change it

I am working on the CSS of my wordpress site. When I make changes and refresh the page the changes are not reflected. When I clear the browser history and cache the changes are still reflected. When I ...
0
votes
1answer
19 views

is_dynamic_sidebar always returns true while using Jetpack visibility

If I have any widgets in the sidebar, even if the jetpack visibility is set to not show on that page, is_dynamic_sidebar return true. Here's the code in my theme functions file: add_action( 'init', ...
5
votes
1answer
139 views

Any alternate TinyMCE4 themes / subthemes?

TinyMCE4 in WordPress 3.9 has some cool changes, but it seems to have only one "theme" included. Is there any way to make a sub-theme of the theme defined by CSS, and theme.js in ...
0
votes
1answer
23 views

Is it possible to share WP database over Dropbox?

I'm developing WordPress themes on multiple machines right now: Windows & XAMPP, MAC + MAMP My themes are shared on Dropbox and are prefectly synced between all these machines (don't worry, ...
4
votes
3answers
123 views

How to add custom “Menu Settings”

I want to be able to tell the wordpress menu's on what page to show. The way my menu is shown now: I want to have the option in the menu settings like so: But I cannot find any documentation ...
-1
votes
1answer
23 views

Display recent posts on front page

I am new to theme development in wordpress i am working on a theme, i have a front page on which i want to display only the most recent 4 posts of any category to be displayed my code for this is ...
-2
votes
1answer
49 views

Trouble with conditional tags

I've got some code I want to run on every page other than the blog page and the archive page. If I use <?php if ( !is_home() ) { ?> The code correctly doesn't show on the blog page. If I ...
0
votes
1answer
759 views

How to call custom category field data in theme?

I am trying to add two custom fields to my categories (which I have done thanks to this answer - Any examples of adding custom fields to the category editor?) And now I need to call them within my ...
1
vote
2answers
307 views

Add custom field to existing meta box?

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works. My question is, is there a way for me to add a custom field to ...
1
vote
4answers
59 views

current_user_can not always working properly

I have a custom Wordpress theme that includes a members only section. In order to implement this, I have the following code at the top of my restricted pages. <?php if ( ! current_user_can ...
1
vote
1answer
511 views

Wrapper class: How to get rid of call_user_func_array() warning?

I have several installations of wordpress and now im trying to create my own small framework so I can create and maintain my themes more efficiently. What I would like to do is to have a wrapper for ...
0
votes
2answers
64 views

WP_Query issues with argument posts_per_page

I have a query that displays the names of donors as well as a dedication. It displays using a date meta query. $args = array( 'post_type' => 'donors', 'order_by' => 'id', 'order' => ...
0
votes
1answer
20 views

Don't load the theme for a page FROM a plugin EDITED

I'm developing a pseudo admin area for my client and they don't want the theme overlaid on it, rather have their admin area take up 100% of the page. Normally I would add if (!is_page($id)) and be ...
2
votes
2answers
1k 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 = ...
-1
votes
2answers
22 views

Creating a site with hidden contents [closed]

I would like to create a site where the only thing you see on the page is the login panel, after logging in , users will be see what has been priviledged to them i.e on can be admin, one can be only ...
1
vote
5answers
1k views

WP_Query returns no results

I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code: $query = 's=the&posts_per_page=5&paged=1'; $custom_query = new ...
-1
votes
2answers
3k views

How can I make a website with dynamic features with wordpress?

As I am a novice in web development field, I wanted to clarify some questions running in my head. I want to make a multilingual website with dynamic features. Dynamic features can be like anything ...
0
votes
2answers
30 views

GrandParent ,Parent, Child issue

I have the following GrandParent -Parent01 --Child -Parent02 --Child --Child -Parent03 --Child I wish to find a solution that when Im on the Grandparent page, that it will only return the parents ...
0
votes
1answer
46 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( ...
0
votes
1answer
39 views

How can I optimize this code? [closed]

I have an Advanced Custom Fields Checkbox that I'd that I need to do some checks on. If a checkbox is ticked in the back end, it outputs an appropriate image on the front end. I've got some code that ...
0
votes
1answer
32 views

Wordpress Footer Widget Processing

I made a sidebar in wordpress and have widgets in it, I want to process them one by one so that I can set their locations in theme according to me. Example: If I have a 3 widget in my footer ...
-1
votes
1answer
851 views

WooCommerce custom query and paging: Not Found error

I'm experiencing a problem with the following piece code: global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $filter_args['paged'] = $paged; ...
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
1answer
3k views

How to add “Template” option in page attributes panel?

I am new in WordPress. In my theme, I do not have "Template" option in 'Page Attributes panel'. I want to add this option. I tried to solve this problem from the following post. But It did not work ...
0
votes
1answer
321 views

How do I check if a menu exists?

I'm currently retrieving a nav menu based on the parent page's title, and if the page doesn't have a parent then it's own title. global $post; $page_title; if ($post->post_parent) { ...
0
votes
2answers
52 views

What it means <link rel=“profile” href=“http://gmpg.org/xfn/11”> is it support HTML 5 or not?

While doing the integrate HTML for my new WordPress Theme , I stumbled across a new meta tag <link rel="profile" href="http://gmpg.org/xfn/11"> what it means or is it necessary to mention and ...
3
votes
1answer
102 views

What, specifically, should be included in theme_name_setup()?

I’ve “inherited” the development of an old theme that I’m now bringing up to speed for WP 3.9. The theme code comes with a functions.php that has a function theme_name_setup() that hooks into ...
0
votes
1answer
31 views

Image load issue with custom page template on Internet Explorer

I have created a website http://demo.tennis-florida.com/ and it is using custom theme that I built when I am opening this on Internet explorer. Images in custom post grid are not showing up ...
0
votes
2answers
73 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
0answers
19 views

Find relative post number in single post page

My problem: I need to find the relative post number (e.g 3rd of 10 posts) within a category. I can get the total amount of posts (10), like so: $category = get_the_category(); ...
0
votes
1answer
30 views

Trouble creating custom sanitization function when uploading video files

I'm trying to create a Theme Customizer control in Wordpress that will allow the user to upload an MP4 and WEBM video, and in doing so I need to create a sanitization option to verify the file type. ...
1
vote
0answers
11 views

Theme unit test data Foreign fonts come in garbled on my machine

Having just tried out the Theme Unit Test Data from the WordPress.org Codex, I noticed that some of the body text doesn't import properly on my set up which is a Mac running Mavericks. The effect is ...
0
votes
1answer
36 views

WP Knowledge Base Theme bug - Subcategories and Articles, Need to change WP_Query

I'm using the WP Knowledge Base theme, which is almost perfect for the project I'm on, but I discovered an unfortunate bug. On the home page, if you have both SubCategories and loose Articles under a ...
1
vote
3answers
772 views

Change Genesis <title> Tag from Page Template [closed]

I have made a page template for a Genesis theme in which I want to change the <title> tag but I can't find any API reference or example to do this. Does anyone have any idea how to do this?