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
9 views

Show a custom template, no matter the page being viewed, if the user is not logged in

I have been tasked with creating a WordPress site where subscriberes (registered by an admin) are unaware of the back-end. I also have to make it so that upon navigation to any page, if the user is ...
0
votes
1answer
40 views

How to make my category archive behave like a page

I don't want to use the category page as usual (list of posts). I would like to add more content: text, images, columns. Which is the best solution? Maybe redirect from a category page to a page? ...
0
votes
1answer
24 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
1answer
34 views

How do i load a different template for different users screen width

How can i load different templates for different screen sizes.Or is there some other method that i load different html for different screen size. Please help!!
0
votes
1answer
25 views

How can I fix the even/odd child classes comments so that the comments are unaffected by the top-level even/odd?

Sorry if the title was confusing, I'm having a bit of trouble explaining here. I'm working on a theme for my site, and I'm using a slightly modified version of a custom comments template found here. ...
0
votes
1answer
51 views

I need to develop a one-page design

I know how to add the scrolling effect, I just needed help that how should I code the onePage.php template by which I can handle different themes for the divs i.e. ABOUT, EVENTS ... each div has a ...
0
votes
1answer
49 views

Retrieving post ID from current page

I am following the tutorial here. Wordpress Ajax is a bit complicated but this tutorial helped me out a bit. The only question I have is, when I view any page, I want to be able to get the current ...
0
votes
1answer
86 views

How to display custom post types AND regular posts separately on a shared taxonomy archive?

I've looked over numerous questions and answers on problems somewhat related to this but can't seem to find the same situation or solution. I have a custom taxonomy that needs to have an archive page ...
0
votes
1answer
31 views

Querying multiple taxonomies in URL leads to wrong taxonomy archive

My problem is very basic but so far I have not managed to solve it so I'll just post it here and hope one of you has got an idea. Basically, I have two custom taxonomies "autor" (writer) and ...
0
votes
1answer
39 views

Multiple pages to show posts

I don't have any code or pages to show yet so I'll just have to describe my question. I have group of posts, no categories or taxnomoy yet. On my home page I have a 'View all posts' link that is ...
0
votes
1answer
48 views

Custom SINGLE page with custom metaboxes and custom template

I run in this situation where I must create complex contacts page with custom template, custom meta boxes. I know how to make custom post type, add meta boxes and display all information in custom ...
0
votes
1answer
125 views

How do I display two separate taxonomy archives for two post types that share a single taxonomy?

I have a custom content type, "products", which shares the category taxonomy with posts. We're using posts to discuss and review products. The idea is to have two separate URLs: ...
0
votes
1answer
45 views

Load different template for CPT (in loop) in my plugin?

I'm writing a plugin that register a new CPT named "sec-feature". In the following loop in my index.php, I want to load a feature-template.php for this CPT posts. But get_template_part just locate for ...
0
votes
1answer
41 views

Category Templates for Post Types not Working

I came up with this in the codex in order to set my template for a specific category post. I have a category name called "Work". The slug for this category is "work". I created a "category-work.php" ...
0
votes
1answer
54 views

server-moving causes funny issues in template

while moved from with a beta install of wp from a subfolder of mydomain to mydomain main folder i get funny things a. the template looks a bit buggy and when i want to login - with i ...
0
votes
1answer
140 views

Display DISQUS on homepage

I have installed disqus and I want it to show up on my homepage. It replaced the old wordpress comments system on pages and posts but I also want it to appear on index.php my index.php file now - > ...
0
votes
1answer
80 views

Need a conditional to test if title of parent page matches title of child page

In my main loop, I need to incorporate proper html markup into a conditional to test if title of parent page matches title of child page and do (or do not) display certain content. Default might be ...
0
votes
1answer
31 views

Template setting is not saving in wordpress

I'm using a child theme. I want to override a template of base theme. I created, articles-page.php which starts with: <?php /* Template Name: Articles */ While creating a page in Wordpress I can ...
0
votes
1answer
22 views

Styling own template

I have an own template here where the sidebar looks different than the others: the sidebar is BELOW right the main content and not on the side. My code: <div id="sidebar"><?php echo ...
0
votes
1answer
33 views

Custom Taxonomy Template Variables Available?

I have a custom Taxonomy sports and want to edit the front-end display. I have got taxonomy-sports.php and used this code to get the data on the taxonomy, but I feel like it should already be ...
0
votes
1answer
79 views

Use different archive template for plugin

In my blog, I'm using a plugin for an encyclopedia. Unfortunately, the plugin uses the archive template from my blog. How can I use a different page / template for the encyclopedia? Here is the ...
0
votes
1answer
16 views

One category not displaying template updates

I've tried refreshing, clearing the cache, opening in a new browser, renaming it from index to category.php-- ALL but one category display the correct template. I'm beyond stumped. One clue is that ...
0
votes
1answer
45 views

Wordpress sites translate dynamically generated Homepages

So I'm having trouble finding a way to translate the homepage content on a few pages I manage. They can be found here: KorgCanada.com (Theme is Simplecorp, and the support forum offers no help) ...
0
votes
1answer
29 views

how bbPress and buddypress add their own page templates to the page template drop down on the page editing screen

Im writing a plugin and need to know how to add a page template in the edit page screen from within a plugin. bbPress and Buddypress both add page templates to this drop down and I can't figure out ...
0
votes
1answer
97 views

Custom templates folder

I created a custom folder ("/templates") and I put all of my template files in the folder. instead of root ("/wp-content/themes/my-theme/"). It works fine. Do I have to add some function for ...
0
votes
1answer
97 views

Cannot Edit Custom Template In WP Editor

Following several well-written articles on creating a custom page template, I made one for my WordPress site hosted at wpengine. The good news: My custom template works just fine. I can add pages ...
0
votes
1answer
39 views

Custom template support for custom post type?

I know I can use single-{posttype}.php but can I use something like single-{custom-post-type-slug}.php to target a specific custom post type post? Or is there another way like a custom template which ...
0
votes
1answer
137 views

Fake Single Wordpress Post (Page) Loop

In a plugin, I am building a custom page with add_action('template_redirect', function(){ include(TEMPLATEPATH."/page.php"); exit(); }); add_filter('the_title', function(){ return "Virtual ...
0
votes
1answer
166 views

Fatal error: Call to undefined function the_ratings_results()

I was wondering if I rack your brains a bit on this one. I have a custom theme that has files in the theme folder but do not load as wp template files on the page settings. I also run EDD (easy ...
0
votes
1answer
28 views

Will this js code work in a page template?

I have been given this code that I want to adapt and use to change a link in a template.php file, I have not been able to adapt it to work so would love any help that can be given. <script ...
0
votes
1answer
180 views

Make Terms Under Custom Taxonomy Use Specific Single.php Template

Yesterday some wonderful people helped me solve the issue here about templates for custom taxonomy terms. Now I have a related question. Again, I have a custom post type set up in my functions.php ...
0
votes
1answer
65 views

Storing postID in session variable to query database when visitor on custom template page

I have an application with 3 custom post types, A, B, and C. The post types B and C are related to A using acf relationship fields. I've designed a single template for A post types. When viewing this ...
0
votes
1answer
160 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
1answer
31 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
405 views

Create a custom taxonomy template that loops through child categories in term order?

We're building a site that sells Biking Gear We're using the Genesis Theme Framework, and developing a custom child theme. It has a Custom Post Type for Products, made with the "Custom Post Type UI ...
0
votes
1answer
155 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 ...
0
votes
1answer
36 views

why is markup routinely placed in functions in wordpress?

Here is an exampple from a woothemes theme. I'm definetly not having a go at woothemes - they are a great theme provider with great standards and this sort of thing is fairly typical in themes. why? ...
0
votes
1answer
348 views

How to retrieve depth of menu into template

In wp_nav_menu i use for the menu, with custom walker, i can get the $depth parameter in the start_el function function start_el(&$output, $item, $depth, $args) but, outside this ...
0
votes
1answer
172 views

Template with Custom Post Type (Custom Tables) does not work

I'm using a Custom Post Type (CPT) my-project stored in a custom table MY_PROJECT. Here is the CPT registering code: $labels = array( 'name' => __( 'Projects ' ), ...
0
votes
1answer
31 views

Group pages by custom field values

I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2. My question: Will it be possible to build a summary page template say for Brand, ...
0
votes
1answer
59 views

How to find out which template the HTML content comes from?

At my page, I want to change the text "next" and "previous" at the bottom of the page, but I can't figure out which PHP template it derives from. I tried searching the classes that was connected to ...
0
votes
1answer
34 views

Single Post Template with Dropdown Option?

I'd like users of my theme to be able to select a single post template via a dropdown menu on the post screen. I know of a plugin that achieves this but I would like to be able to achieve the same ...
0
votes
1answer
267 views

Why won't the action hook wp_head won't accept parameters?

I'm working on a plugin that adds scripting to the head using add_action('wp_head',..); I have to pass a variable to the function to get my desired result. To test this I'm simple "echoing" out the ...
0
votes
1answer
19 views

Odd page behaviour after removing sidebar

One of my web pages is displaying odd behaviour, after selecting a no sidebar template for the page. The sidebar has disappeared, but elements within the sidebar, now show in the bottom right-hand ...
0
votes
1answer
37 views

How to make plugin work in each template in wordpress

I am new to plugin development .I want to get all images of a particular page/post and want to show them as slideshow below the page ..Currently i am able to gather all images in media library and ...
0
votes
1answer
30 views

Text in permalink

I've this kind of permalink for post type : /widgets/%category%/%postname%/ And the problem is that when going to /widgets url (http://mysite.com/widgets) a not found page error (404) is displayed. ...
0
votes
1answer
57 views

Which hooks are essential for post templates?

Im in the process of building a very custom theme and Im beginning to work on the post templates, but I dont know which hooks are essential for them. So like, I've seen (but cant remember where)some ...
0
votes
1answer
92 views

RSS Feed in Custom Field

I have a custom field intended for a rss feed. It is simpley a URL in the field, how do I take that url entered and output it into the correct section in the template? <?php include_once(ABSPATH . ...
0
votes
1answer
58 views

How to know which page/file WordPress is expecting?

I'd like to know if there's a way to know which page or file (index.php, page.php, category.php) WordPress is expecting when displaying a page. I get a 404 error on a www.myblog.com/page/2, meaning ...
0
votes
1answer
68 views

Is there a list of all possible WordPress URL's?

I'm looking for a way to find out how my WordPress site handles various incoming requests, some of which I have not written templates for. For example, there are a number of archive views (year, ...