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
1answer
24 views

Confused by the behaviour of “front page” / “home” templates

I stumbled upon a confusing issue while trying to customize the appearance of the front page of my blog (blog.example.com) without changing the behaviour of the other blog posts index pages ...
0
votes
1answer
15 views

Single post full screen template not inheriting worpress role permission

In addition to the normal single post view on my website, I added a full screen version of the post with entirely new set of styles. In this full screen option, everything is removed except ...
0
votes
1answer
15 views

Where is search.php?

I've got a site on Wordpress 4.0.1, and I can't find search.php. A database batch process has applied a template to the default search results page, but I now can't find the page to change it back. ...
0
votes
2answers
58 views

Posts in Multiple Columns and Rows with one single loop

I'm pretty new to creating my own theme and I seem to have become stuck and would really appreciate it if someone could help me. I have searched and found snippets of advice but nothing that really ...
0
votes
0answers
10 views

Filtered $locale isn't applied on templates language lines

I change the global $locale by the following code in my functions.php function change_locale_on_admin ($locale) { if(is_admin()) { $locale='en_US'; } return $locale; } ...
2
votes
3answers
56 views

WordPress as Backend, Laravel Front End: How to connect Routes?

I am going design a site and I though about using wordpress for it as the clients want to be able to edit the content and they are not very up to date with the latest technologies, so I though that as ...
0
votes
1answer
23 views

Including Custom Template on template_include Filter not working

I have registered a template like this, but on the template, I was wondering how to get all of the current themes functionality to exist on the template, as some parts are missing in the way I have ...
0
votes
2answers
40 views

custom post type archive template per custom taxonomy term

I want to list all posts with a corresponding template for a custom taxonomy term of a custom post type. To make it easier to understand: The custom post type is called PUBLICATIONS and has a custom ...
0
votes
1answer
27 views

use a custom page to display search results

I would like to display the wordpress search results on a page which I've created in the wordpress backend. I need a page, because I've custom content on this page which should be changed by backend ...
1
vote
2answers
23 views

Why does the Full-width Template in Twenty Twelve pack so many classes into the body class attribute?

I created a page and selected the "Full-width Page Template, No Sidebar" option in the Twenty-Twelve Theme. The viewed page has the following body tag: <body class="page page-id-2 page-template ...
0
votes
0answers
19 views

How to output different content of page on different places in my template

I have a special template for my homepage. There are many different boxes, and in every box I want to have different content. That should be possible to create over the backends page edit function. ...
0
votes
1answer
47 views

How to get_template_part using AJAX?

I'm currently on the Woocommerce archive-product.php template file (say shop page or product category page). On the click of the post (or product), a GET query is added to the title of the same page, ...
0
votes
1answer
22 views

Should meta boxes for specific pages be save in their own plugins?

I realize this is a subjective question, but I need some opinions on where to put functionality like meta boxes that belong to specific pages. Let's say I have a template called Gallery Page. On that ...
0
votes
1answer
19 views

Will placing custom templates in sub directory break any native WordPress functionality

I have, on an existing project, created a folder named templates in the theme root directory where I have put all my custom template files, all the files that have the Template Name: BlahBlahBlah in ...
0
votes
1answer
26 views

How to put limit on slider

My question is, how do I put a limit on the amount of featured content that shows up on my slider on the front page. I'm using Dynamic News theme and it has a slider built in. However I want to limit ...
0
votes
0answers
31 views

Template for portfolio, posts existing but still “not found”?

I'm updating a website which wasn't made by me initially. The website has a portfolio-template which is used on severel sub-pages in the menu, and each sub-page has its own category. Now I want to ...
0
votes
1answer
25 views

How to set a certain Custom Template to a Single Blog Post

I need to set a custom created template to be used whenever a single blog post is displayed. I can see how to assign custom templates to pages under Page Attributes > Template, but how do I tell my ...
0
votes
1answer
30 views

Change location of header.php and footer.php

I wish to organize the my themes directory a little more. Is it possible to move header.php and footer.php to a sub directory? I guess it's done by hooking on to some action, but is it possible with ...
0
votes
1answer
18 views

Category template not displaying all post formats

When I visit a category page that lists all posts in that category, the divs that are to hold the content are empty. The template is clearly only set to display the standard post format, but none of ...
0
votes
1answer
16 views

Is it possible to return a specific tag archive/template as one of the search results?

Is it possible to return a specific tag archive/template as one of the search results? For example, let's say my site has the tag: Summer And my site has the pages: Summer picnicking Fun, fun, ...
0
votes
2answers
17 views

How to list/show all custom post types regardless of category?

I realise with this question I was overcomplicating a really simple issue. My question is really this: How to have a page listing all items of a given custom post type? Say the custom post type ...
0
votes
1answer
43 views

Call a function for social sharing

Using this tutorial I was able to create sharing buttons, but the problem that the code inject right after the_content();, I would like to have the ability to call anywhere in my templates. My ...
1
vote
0answers
36 views

singular.php instead of page.php [closed]

My client requested I use the Publisher templatic theme: http://templatic.com/app-themes/publisher. So far, I'm less than thrilled with the architecture of their themes. For some strange, unknown ...
0
votes
1answer
9 views

custom template for custom url

I've tried registering an URL for which I want a custom template to load up (and list maybe ten or twelve items of a CPT I have already registered and have working elsewhere). I have the following ...
0
votes
2answers
48 views

Loop through pages with specific template

I would like to know how I can loop through pages with a specific template name. I have several pages where the admin can select a template name of SALE. I want to display all content with this ...
1
vote
1answer
21 views

How can I get categories IDs if multiple categories requested via URI?

Let's say, I have two categories, 'color' and 'temperature'. Each one has a number of sub-categories. Wordpress does great job displaying posts in requested categories when I go to URL like this one: ...
0
votes
2answers
32 views

Custom permalink structure for remote content pages

I'm trying to create a WordPress site that integrates with a very specific CRM in a remote server. The CRM holds a number of entries that should be displayed on the site, but if possible I'd like to ...
0
votes
2answers
27 views

How to display page content and a list of posts on the same page?

I was wondering if there is a way to display the page content and a list of posts from a specific category on the same page in my wordpress blog using a template. I have a child theme set up, but ...
0
votes
0answers
29 views

Loading different template on different url of same page

I have successfully add rewrite rule and tag for a page. My page slug is my-page. when my url is mysite.com/my-page then the right template is properly loaded. I have set a custom template for ...
0
votes
1answer
37 views

Show template loaded

Is there any way to see what .php files are being loaded for a particular page? So say I have a page - www.example.com/page - and on it is loading the header.php, sidebar.php, footer.php, and the ...
0
votes
1answer
35 views

How are the HTML classes generated?

I've just created a "full-width" template page for my theme, allowing me to set the width of the site content to maximum if there are no sidebars active. What I've noticed is that this gave me a HTML ...
1
vote
2answers
62 views

Password protecting content in custom template

I'm trying to password protect content in a custom page template, however when i enter the password i assigned in the backend, it doesn't authenticate, instead just reloads the page upon submission. I ...
0
votes
1answer
33 views

Custom template for different post types

I'm struggling to get my head around the correct terminology for posts/templates etc which is making it difficult to find what I'm looking for in Google/on here. Basically, I'd like a user to be able ...
1
vote
1answer
20 views

Plugin templates in which directory

Currently I have a number of custom posts as plugins, which process data and send them to the plugins respective template. I use Roots theme as a basis and currently store my plugin templates in the ...
0
votes
0answers
31 views

why get_header doesn't work twice in a test

I'm trying to test a template. It's working fine individually until I run all the tests altogether and the tests fail. protected function load_template() { do_action( 'template_redirect' ); ...
0
votes
0answers
26 views

Page Templates Used in Custom Post Type

The same question was asked here with no real response. They claim it's not possible but I have used plugins that accomplish this. In WordPress I am having a problem figuring out how to use the ...
0
votes
1answer
16 views

Problem displaying replies as part of author's latest comments on author page

I've based a lot of my method on this thread here I can currently display 5 latest comments on an author template page. I want to display the latest 3 replies from any user for each 'main' comment ...
0
votes
1answer
30 views

custom template - override plugin template in child theme - issue with scripts

I'm using a custom template for the single-listing.php from WP Listings. I've used my own theme (Canvas by woothemes) single post template, and included the wp-listings code. ...
0
votes
1answer
23 views

Can i exclude certain page templates for a specific role?

Let's say i have two types of templates available when making a Page. "Default template" and "Intermediate template". I have a role called "editor", and i do not want the editor to access the ...
0
votes
0answers
27 views

Where to find the newly created page?

When we customize a theme and create new pages, where can we find them in root folder? I tried it searching a lot, but could not find. Any suggestions?
1
vote
1answer
38 views

Cannot edit style.css from admin panel, because the template is looking for style.min.css

I am trying to edit the style.css file for a Wordpress theme, however the changes I make (via admin or ftp) are not reflected on the site because that is using style.min.css. It is very cumbersome ...
0
votes
1answer
13 views

Page Template with Sidebar Naming Convention?

Is there a common naming convention for page templates? Most themes have a two sidebars: Primary, Secondary And then if I'm not mistaken, these combinations: Page templates: 1 Sidebar, Primary ...
0
votes
1answer
37 views

Custom php file in wordpress

For some purposes i want to have custom php file in my Wordpress that will output content from 3 plugins. This is the PHP code in the file : <div class="wrap"> <div class="sidebar1"> ...
0
votes
0answers
33 views

Search for posts with specific tag inside custom page template

I'm developing a Wordpress blog where there are two custom pages - i.e., different from index.php. In there, there are two albums of photos, with the photos listed on a div above. I've put an input ...
0
votes
0answers
24 views

Adding a hash to a url in .htaccess

I am using a js hash listener to display a modal window if the /hash matches the id of the element. /brands/type/#name-of-product Works fine. However, default WP behavior will match any ...
1
vote
1answer
30 views

Can't format content of Rich Text Editor in Template

I use following functions to add a new rich text editor in admin . add_action( 'add_meta_boxes', 'adding_new_metaabox' ); function adding_new_metaabox() { ...
0
votes
2answers
32 views

How to add custom content to custom taxonomy

I'm currently learning Wordpress. So my theme has a custom post type called portfolio. I'm using this online code to add a custom taxonomy to this portfolio custom type: function ...
0
votes
1answer
23 views

How to display error on specific template?

I know in wp-config.php editing this line: define('WP_DEBUG', true); - on display error define('WP_DEBUG', false); - off display error I just want only display error in specific template or page.
1
vote
1answer
45 views

Stylesheet comment header: Which header names are mandatory? [duplicate]

I've always used the same comment header names in my style.css document. Theme Name, Theme URI, Author etc. For example: /* Theme Name: Example Theme URI: http://example.com Author: John Doe Author ...
-1
votes
1answer
42 views

Template for product-category page [closed]

Where can I find the template that is used for the product-category page? The general template is "page-full.php". But where is the template for the single-product page (single.php?) and the ...