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

learn more… | top users | synonyms

0
votes
1answer
15 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'); ...
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
1answer
36 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 ...
2
votes
1answer
59 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
2answers
49 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 ...
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
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
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() && ...
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 ...
4
votes
1answer
52 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
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', ...
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, ...
-1
votes
1answer
21 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 ...
-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 ...
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 ...
1
vote
4answers
58 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 ...
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
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
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
52 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
31 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 ...
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
3answers
53 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
2answers
49 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 ...
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
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(); ...
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
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
10 views

Why this Wordpress page.php file contain the posts loop? [duplicate]

I am pretty new in WordPress theme development and I have the following question about the page.php page contained into templates files (the file that describe the template for the static pages) I am ...
0
votes
2answers
29 views

Why in the static pages of my theme are showing these information?

I am working on a WordPress theme and I have some problem with the pages\posts layout. For example if you go here: http://lnx.asper-eritrea.com/lassociazione/ This is a static page that show some ...
0
votes
0answers
37 views

using theme check plugin to remove waring and errors from my theme

i have solve the most of issue now only the followings issue reaming. 1.the most important WARNING: curl_init was found in the file twitteroauth.php File operations should use the WP_Filesystem ...
0
votes
1answer
25 views

Removed jQuery script from header.php , any problems?

To avoid multiple jQuery calling from my theme and plugins, I removed <script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ...
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 ...
0
votes
0answers
23 views

WordPress HTML Menu

I'm trying to get the menu on my WordPress site to append the class like so: <ul class="nav navbar-nav navbar-right"> <li><a href="/">Home</a></li> <li ...
0
votes
1answer
21 views

Setting conditional background image from meta value

I am trying to set background image from meta value.I am successful also.But if the meta image is not set the out put <div id="pricing" style="background: url('')"></div> But I do not ...
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
39 views

How do I update WooCommerce template files in my theme? [closed]

WordPress beginner here - my site seems to have some outdated template files which I think are the cause of some functionality issues the site is experiencing. Particularly, there are bundled ...
0
votes
0answers
69 views

Flexslider not working for my custom theme WordPress

I add flexslider to my theme homepage http://templategraphy.com/wp-demo/bluto/ but it didn'not show on my homepage Here is the order of js i placed in function.php function theme_name_scripts() { ...
0
votes
1answer
19 views

paragraph format in WYSIWYG on a custom theme?

How can i present the same content/paragraph format on my WYSIWYG on my custom wordpress theme? i never put much thought on how my content shall be presented while im busy doing all the site overall ...
0
votes
0answers
29 views

Custom widget not appearing on front end

I have the following widget location defined in my theme's functions.php: register_sidebar( array( 'name' => __( 'Opening Hours', 'transparent' ), 'id' => 'sidebar-hours', ...
0
votes
1answer
13 views

unable to display the image meta value as background

I want to use meta url as background image.But the fact that I do not want to show "background-image:url('_')" this way because if my meta value is empty.What I thought to end up in this way. ...
0
votes
2answers
34 views

How to add multiple images to a custom post type single post?

I have created a custom post type and I need to add multiple images to every single post, so I can create a loop and use them in a slider. So far my search on Google etc. has turned up nothing. ...
2
votes
2answers
46 views

Translation-readiness of Koi theme

I am migrating a (non-English-language) blog using the Koi theme on WordPress.com to a self-hosted environment, but see that certain strings are no longer being translated. For example, if my ...
0
votes
0answers
15 views

menu hierarchy not working

I have created a theme from scratch and was using a custom menu with no problem. Somehow, I lost the ability to create a hierarchy in the menu -- all menu items show up at the same level. I have ...
4
votes
1answer
64 views

Display admin notice only on main dashboard page

I'm using following code to display a notification in the admin dashboard. I want to display only on the main dashboard page (index.php), however the following code would display on all pages in the ...
0
votes
0answers
29 views

editor style css and page template with and without sidebar

I have two page templates in my custom theme. Full width template and Default template. Full width template does not have side bar and is of width 980px. While default template is having sidebar on ...
0
votes
0answers
20 views

Conditional loop based on current page

I'm trying to get the loop below to display only the post with the category that reflects the given condition but it doesn't seem to work. Any Ideas on how this can be achieved? <?php if ...
0
votes
1answer
20 views

Search page results conflicting logic - Search result caching?

I recently stylized my search page results from the base template _S, and got everything to work quite nicely. I've developed it to return false/positive header/body. It should only return a positive ...
1
vote
2answers
66 views

Why use while over if in single wordpress posts?

Why is while() used instead of say if() here: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'single' ); ?> <?php ...