Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.

learn more… | top users | synonyms (1)

0
votes
0answers
42 views

How i call multiple template in same menu

I want to call two template in same menu means when i click on tab one then page will open different template and when i click on tab two then page will open in different.I have three template ...
0
votes
1answer
262 views

excerpt not showing up

I have a custom template for homepage and in it, i want to display excerpt from some category. but not even the simple the_excerpt() isn't working. i tried the_title and the_content, but only title ...
0
votes
1answer
39 views

two active templates for one post

I wanna have example.com/post-name -> uses template1.php example.com/post-name/details -> uses template2.php I found this discussion, so I implemented the codes in my theme’s ...
0
votes
2answers
76 views

printf, translation and the_author_posts_link()

For some reason the following code is not displaying correctly on the frontend of my site - <?php printf( esc_attr__( 'About %s', 'textdomain' ), the_author_posts_link() ); ?> Instead of ...
1
vote
1answer
42 views

How to modify wp-includes without messing my wordpress installation?

I'm using a Twenty Twelve theme with a child theme. When the screen is shrunk to less than a certain width a responsive menu is toggled. The problem is that this menu's top level pages look the same ...
0
votes
1answer
402 views

Where is the template for the 'standard' format of a post in the theme twentythirteen?

I have selected the 'standard' format for a post: I am now trying to edit the layout of posts, in index.php I can see the following line: get_template_part( 'content', get_post_format() In the ...
0
votes
1answer
102 views

Change “posts per page” depending on width

I'm working on a responsive theme. One part is a sort of news flow (blog). In desktop widths (above 767px) the news template is vertically divided in two. The left part is a navigation which lists ...
0
votes
0answers
33 views

Default RTE editor in popup dialogs through templating system?

Setup: The content type add/edit page (content type == post, page or other custom type). A Handlebars template wich is PHP include()ed in the content type add/edit page, which contains a call to ...
0
votes
1answer
54 views

Exceprt not displaying

I am using a custom template homepage in which I want to display some excerpt from a category but it's not displaying as I code for just the_excerpt. I have a confusion too, they say the the_excerpt ...
0
votes
1answer
23 views

Where is the code for “Front Page Template”?

I'm using the TwentyTwelve theme. For my static front page I'm using the "Front Page Template", but I want to modify it so it doesn't include the page's title on the rendered page itself. So I went ...
1
vote
1answer
51 views

post edit button on front end

If you are logged-in and switch to the front-end the default Wordpress theme Twenty Eleven provides edit buttons next to every post. Pressing this button you get to the certain post's back-end post ...
0
votes
0answers
30 views

the_content() function in loop-single.php

i need to show to different layout based on featured_image size for that how on can the_content() as per that. if featured_image .size =={ the layout would A } else{ the layout would B } how does on ...
1
vote
1answer
101 views

is_archive() content being shown instead of is_category()

My Issue: If I browse to http://mysite/category/mycategory, the if (is_category()) content isn't displayed, the if(is_archive()) is shown instead. My code: archive.php: <?php ...
0
votes
2answers
88 views

If Posted After Date

I need to get a different "get_template_part" based on the date and category. I have changed the outlay of the category which means any post in that category before today's date wont be able to use ...
0
votes
1answer
28 views

Prevent plug-in scripts on a specific template?

I have a plug-in which is interfering with my Google Map Embed in the template I'm using for my about page. Is there a way to prevent that plug-in from hooking in all of it's script files through ...
0
votes
1answer
39 views

I would like to feature a tip on the homepage

I'm sorry if this question is explained somewhere, I couldn't find it. But it's also difficult to express this special thing in a second language.. I have a very simple homepage, and on that homepage ...
0
votes
1answer
180 views

Dynamically generated URL and Content page

I am in need of some advice. I have a section on my home page dynamically pulling in a list of terms from a custom table in the WP db. I have made a unique custom URL for each of these terms based on ...
0
votes
0answers
34 views

Why does my installation default template to index.php when archive.php and category.php exist?

I have set up a theme that started off as a copy/paste of twenty-thirteen, because I'm familiar enough with that theme and would like to build from something I am familiar with. That theme includes ...
0
votes
2answers
120 views

Template files for Custom Post Type and Taxonomy

I've got a custom post type called "properties" and two custom taxonomies called "type" (office space, retail space, etc.) and "location" (new york, chicago, etc.). I have created ...
0
votes
2answers
65 views

changes to templates not showing on server

I have done some changes to woocommerce changes to its template in /MyTheme/woocommerce/templates, it shows fine on my localhost but when I upload the woocommerce to my server under my theme it ...
0
votes
0answers
150 views

Page Template Changes Not Showing

I'm dealing with a weird and very annoying bug where changes to a page template file ("contact.php") are not being registered at all by WordPress. I've made sure that the template has been correctly ...
1
vote
1answer
36 views

Can I obtain differents links for different installed theme?

I have to show 3 differents template to a person and then say to him: "Please, choose one of these templates and I will use it for your web site" So the question is: Have I to install 3 differents WP ...
0
votes
0answers
93 views

Select good template with rewriting rules

After creating the sub page "China" of the parent page "Destinations", I add to it the "Destinations countries" template. Without any redirection, I can display the correct template at this url : ...
1
vote
2answers
78 views

Avoid Wordpress categorizing a permalink request as Not found 404 Page

I've been looking all over the web for something like what I need and I haven't find anything resemble not even similar, the thing is this: I got a Page Template to a simple page post type, let's say ...
-1
votes
1answer
515 views

Template for custom post type shows all posts instead of just one

I wrote a simple plugin to create a custom post type named "people": add_action( 'init', 'create_person' ); function create_person() { register_post_type( 'people', array( ...
0
votes
0answers
85 views

query_post while (have post) get_template_part()?

My goal: Is to give the user the ability, if they so choose, to create a new category. I have the current categories saved in a separate php file and call them in using get_template_part(), there ...
0
votes
2answers
139 views

How to make different custom post layouts?

I am new to wordpress, and have encountered some difficulty in making my own custom layouts. I'm using _S framework (underscore.me) as well as Custom Post Templates plugin. I'm using custom fields ...
0
votes
1answer
67 views

Wordpress as template engine

i would like to use Wordpress as template engine in my custom bootstrap/zurb foundation sites. I found there's lot of custom styles included in wordpress articles by default. Are there any ways how ...
0
votes
2answers
31 views

How to create a title images for different posts?

I've recently started with wordpress theme development and have come up with a few different post templates but there's one thing I'm still unsure how to do - that is, having a post specific image ...
-2
votes
1answer
146 views

How to implement a custom sliding banner? [closed]

I need to make a custom slider with images (same images on all pages) in a template I am crafting for a client. Each of the slides could have a link to one of the pages. How and where should I store ...
0
votes
0answers
67 views

nextgen gallery dynamic template not fully functional

I have a template with 2 columns, on the left side is a list of dynamically added gallery titles, on the right is where the galleries themselves show up. It is working for the most part, when I click ...
2
votes
2answers
407 views

Gravity Forms Custom Templates

Im trying to further customise my Gravity Forms "Address" labels. At the moment they read "Street Address", "City" and "ZIP / Postal Code". I, for example, want to change "ZIP / Postal Code" to "Post ...
-1
votes
2answers
426 views

Choose custom post type template by category

I need to style my portfolio posts with different templates. My thought is that it would be done by category. I have tried using in_category and is_category and a lot of other work around's but to no ...
0
votes
1answer
30 views

Permalink / sub-template issue

I've got a WP page with many subpages with their own template. The main template includes them. Each element with its own template can be received with an id and an anchor that is linked to this idea, ...
0
votes
1answer
46 views

WordPress doesn't respect the template hierarchy?

My theme has a custom taxonomy template ("taxonomy-authors.php") but WordPress only serves this template file when a term associated with this taxonomy is called. e.g. example.com/cpt/authors/john-doe ...
0
votes
2answers
35 views

How do you modify Page Template?

Do I just go to Appearance->Editor and then pick the template and modify the PHP code directly, or is there a more "non-coding" way of doing it? I'm using a theme with a contact form, and the whole ...
0
votes
1answer
261 views

How do we create a custom taxonomy template that loops through child categories in term order?

We're building a site that sells Biking Gear : http://www.nimblewearusa.com.php53-16.dfw1-2.websitetestlink.com/ We're using the Genesis Theme Framework, and developing a custom child theme. It has ...
0
votes
0answers
25 views

Adding fields in Custom post types?

I am a newbie. I have followed a few tutorials related to custom post types, i know about registering post type, taxonomies, adding meta box. But can't figure out how to add fields like shown in the ...
0
votes
1answer
20 views

How to link to the page displayed by home.php?

I am working on a theme that is using front-page.php as a front-page.php and home.php to show blog posts. What I can't figure out is how to link to the blog page that is displayed with home.php. ...
0
votes
2answers
172 views

How to add a “ waiting” icon for an ajax in WP frontend?

This is my search js code for processing search : jQuery(document).ready(function($){ $('#searchsubmit').click(function(e){ e.preventDefault(); var searchval = $('#s').val(); ...
0
votes
1answer
42 views

lost css when overriding themes templates

i have copied and modified the template file : header.php in my theme child and i kept the same path. here is the full file <?php /** * Your Inspiration Themes * * @package WordPress * ...
0
votes
1answer
39 views

Show uploaded images in full size

I have a very simple template where I am showing images. The code looks like this: <?php /* * Template Name: Portfolio */ ?> <?php get_header(); ?> <div class="row"> ...
0
votes
2answers
69 views

Forcing oembeds to top of post

What's the best way to force oembed (or shortcodes too) to the top of a post? I'd like to feature youtube embeds before the actual article content, regardless of where the link was inserted. Any ...
0
votes
0answers
82 views

Woocommerce - Append custom field after price in content-single-product.php

I need to append a custom field called unit_description after the price on the single product page so it would read e.g. $7.00 per sandwich. I'm thinking it would begin with: remove_action( ...
0
votes
3answers
68 views

Post Templates and Post ID's

I am trying to make use of the Single template for single posts ( I have a custom one). But for some reason my posts get overridden instead of displaying new data. This is the setup I have right now ...
0
votes
0answers
33 views

Custom page templates readmore tag is not working

Custom page templates readmore tag is not working. When I insert readmore before some word (in WP Editor) that's not working when I visit the page. I don't need post_excerpt();
0
votes
1answer
34 views

Load custom script on a single template

So I placed two scripts in the plugin folder, but I can´t figure out why they wont load. I created a custom template where I have placed the following code: <?php function my_enqueue_scripts() { ...
0
votes
1answer
95 views

have_posts is empty on category.php

All the applicable code is in this gist. I have a really simple category.php template. I have 3 posts, each belonging to the same parent category, and 2 belonging to one child category and the third ...
-1
votes
1answer
35 views

Wordpress show different custom post type

In wordpress I want two different types of custom post. In one section I want to post all the latest news and in other I want to use as blog. In latest news post type when I will make a news it should ...
1
vote
1answer
83 views

Theme development question regarding layouts

I am developing a WordPress template (or rather trying to) and need a bit of help/advice. I have a template that consists of a header (inc nav), footer, main content area. The main content area has ...