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
2answers
250 views

loop not displaying posts on custom template page

I have a site using a static homepage, and a posts page called Press(press.php). The template is being pulled up correctly, however no posts are shown. Any ideas why? Thanks in advance. Live site. ...
0
votes
2answers
64 views

posts not showing on index.php

Live site. I've got a custom theme, wherein the homepage(front-page.php) is static and the "posts" page is Press(index.php). Everything with the theme works great, with the exception of the posts not ...
0
votes
2answers
816 views

Custom reset password template after forgot password request

I've made a custom login template where you can login or request a link that sends you to the reset password form. What I need to do is make that unique link redirect to a custom reset password ...
1
vote
1answer
63 views

Output menu navigation in php file

I have a WordPress site which generates a menu at the top of the page with this: <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?> This ...
0
votes
3answers
168 views

Dynamic Sidebars based on page name

I would like to do a dynamic sidebar for my WordPress site, so it would pull in the correct Sidebar template based on the page title of the page. So if I had 10 sidebars all named like this: Sidebar ...
0
votes
2answers
29 views

Which template.php for /blog

Hi I have a particular installation of WordPress, and I would like to know what is the name of the .php file to access to the blog. So to sum up : I have a navigation like that : HOME / PORTFOLIO / ...
1
vote
1answer
169 views

Check if password protected post is visible

Is there anyway of checking if a password protected post is visible / not visible? I want some thing that says this; If the post is password protected (that parts fine) and the correct password ...
0
votes
1answer
44 views

Load featured article once in a loop

I'm working on a WP-Touch theme and I have a template file that looks like this: <?php get_header(); ?> <?php locate_template( 'featured-post.php', true, false ); ?> <?php ...
0
votes
1answer
70 views

Pull comments from one page/post into another page/post?

I am creating a facebook app via wordpress but some how need to pull the comments off my homepage and insert them onto another page, essentially what I am trying to do is duplicate the homepage with a ...
1
vote
1answer
435 views

passing argument to get_template_part() or a better way to code

I have this include … event-list.php <?php /** * The loop that displays upcoming events */ ?> <ul class="event-items"> <?php $yesterday = time() - 24*60*60; $args = array( ...
0
votes
0answers
60 views

Add new template file in plugin [duplicate]

Possible Duplicate: Create custom page templates with plugins? I create a plugin and a template file but I do not know how to include the template file in the plugin For the moment, I use ...
0
votes
1answer
26 views

Move Index to a page

From a default WordPress install, I have set a static page as the front page and now I want to have the last posts (what is normally seen when visiting the root of the website) in a "Blog" page. Do I ...
0
votes
1answer
184 views

How to customize `Edit-Post` Screen

I have found edit-form-advance.php in /admin/ that contain layout of edit-post page Have any way to customize layout via add_action(); ? because I didn't want to edit directly within Wordpress admin ...
0
votes
2answers
132 views

AJAX requests within templates

I'm trying to come to an accurate decision here about safe ajax requests from a template. The thing about AJAX that always scares me is that the called script location is public: ...
0
votes
2answers
249 views

Single Post Breadcrumb not linking back to Custom Post Type Index?

I am using a breadcrumb code that will not place a link on two custom single post pages linking back to two custom post type index pages. The full Breadcrumb code can be seen here: ...
4
votes
1answer
517 views

How to get IDs for objects in menu branch?

Is it possible to print content of all menu items, when displaying menu (or branch of menu as in question about displaying menu branches) ? Once I click on About Us I wish for new page to display ...
0
votes
2answers
114 views

what is template-name.php

A while back I found that there was a reason to name a template like so template-name.php For the life of me, I can't remember what it was for. I thought it was so that WordPress would automatically ...
0
votes
1answer
157 views

What filter or action hook to use in order to load some code before the template begins printing in BuddyPress?

I would like to load some code before the template begins printing in BuddyPress. What filter or action hook should I use? I tried a number of them (such as bp_head, bp_include, bp_init), but none of ...
0
votes
1answer
183 views

How to create template for taxonomy results limited by Custom Post Type?

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
0
votes
2answers
127 views

Multiple sub directories for theme template pages

I apologize if this questions has already been answered, I have a feeling I'm just not using the right terminology for my search. I'm in the process of building a base theme for my employer. One of ...
0
votes
1answer
149 views

Replace single_template filter with what for default posts?

I was going through a tutorial on Justin Tadlock's blog but it uses the single_template filter, which was removed in 3.4. The codex says to use {$type}_template but if I use "post_template" with the ...
0
votes
2answers
209 views

Blog template PHP [closed]

Here's the WP wordpress website: http://www.joaoalexandre.com/wordpressteste/ And here's the Blog section: http://www.joaoalexandre.com/wordpressteste/artigos/ How can I show a regular simple blog ...
0
votes
1answer
79 views

Display an image of selected template in admin to aid user when using complex templates

Edit: It seems that I have not explained myself very well... I am simply trying to add an image to the page attributes area of the admin area depending on what template is selected, here is a simple ...
-2
votes
2answers
114 views

How to make a template using plugins [closed]

i am totally new to wordpress. someone suggested me to use wordpress to make website like this www.thefunnyplanet.com so i've spent a lot of time to make something like www.thefunnyplanet.com ...
-2
votes
1answer
134 views

How to load/include category templates based on conditionals?

I have this lines to get different template, I can get the desired template but also i'm getting the default template at the end of theme. I tried to skip the code with goto but this fuction is ...
0
votes
4answers
1k views

Wordpress not respecting template hierarchy (fetches index.php instead of single.php or page.php)

I've encountered a strange error while developing a custom theme. After finishing editing the template for a custom post type single view, I passed onto working at the template files for pages and I ...
0
votes
1answer
177 views

Calling a div and content in php?

Is there a code that i can place in the header that will call a certain div and the content i place inside it for every custom post type i have, Somthething like this. <?php if ...
0
votes
3answers
156 views

How to access .html file that's located in the theme folder from the browser?

By default you cannot access a file inside the theme folder directly from the browser, what changes should I make to make an exception?
0
votes
1answer
237 views

Custom post types with categories in template

I´d like to do something like this: Pages: 1. Sport 2. Business 3. Normal Custom Category "Car-Types": 1. Audi 2. BMW 3. VW My custom post type will called "Cars" I´d like to show the cars ...
0
votes
2answers
64 views

Correct process for a new Page Template?

I'm creating a new Page Template. I want to change margins, fonts, font sizes, and things like that. I don't know if I've done things right. Is the following process that I've followed sound?: I ...
0
votes
1answer
233 views

New Template — copy existing template and change code? [duplicate]

Possible Duplicate: Correct process for a new Page Template? I created a page template following these instructions: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates I'm ...
1
vote
1answer
86 views

Archive.php filtered by pre-determined category

My archive.php template is formatted perfectly to list out posts from a certain month and year. However, I only want this template to show from a specific category. I can query for the specific ...
1
vote
0answers
284 views

Wordpress custom taxonomy template not working

I installed theCartPress plugin and it created tcp_product_category taxonomy for tcp_product post type. I created a page with custom template to list all the product categories. I can use ...
2
votes
2answers
283 views

Pagination Issue: Custom Post Type In Index

I'm using a template, which uses Custom Post Type 'movies'. When I try to change the page I got 404 Not Found :( This is my index.php <div id="content"> <?php $temp = $wp_query; $page = ...
0
votes
1answer
124 views

Output Buffer Issue with Single Post View

I created the following function that I am using to load single post views: // Post function basey_single_post() { global $post; ob_start(); echo apply_filters('basey_page_title_news', ...
2
votes
2answers
176 views

How to move style from template file to <head> section?

Imagine the following situation: //header.php contains: <header id="header">logo and navigation</header> //my-template.php contains: <?php get_header(); ?> <style ...
0
votes
1answer
31 views

how to style an individual page in a category [duplicate]

Possible Duplicate: How to show a post single post in page template im trying to understand how to target a template for an individual post. if i use the following hierarchy for my site, ...
0
votes
2answers
122 views

How do I pass data from page content to the underlying PHP template

Pretty much all of the content on the site is going to be dynamically generated (php + db backend) What is the preferred "wordpress way" of passing data to a php template (set up as a template in a ...
0
votes
1answer
117 views

Category Template: Need to display different content on first page of archives

So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
0
votes
1answer
60 views

Problem with permalink structure for Wordpress custom post_type archive template

I have looked at other similar answers to this question but not finding my way. I am using Custom Post Types plugin for a custom post_type called 'product' and has_archive is set to 'true' in the ...
0
votes
0answers
76 views

Wordpress stopped recognizing custom page templates changes [closed]

I'm not sure when this started, but I just noticed that some of my custom page templates do not reflect the changes I make anymore. I have no idea when or why this started happening. For example, if I ...
0
votes
2answers
68 views

Putting two themes together to create a complete site

I know my way around WP as probably an intermediate user. In the near future, I will have to integrate the design of a template from a completely different theme into a theme I'm currently using. The ...
0
votes
3answers
588 views

Custom page template not working

I followed this tutorial for the page specific template -- http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates Created a page through wordpress admin panel - Blog Page URL like -- ...
1
vote
1answer
428 views

How do I create a separate page for each author?

I am working on a website where I have authors listed on a custom-made author's page using code adapted from this site: http://bavotasan.com/2011/an-even-better-author-list-in-wordpress/. When you ...
0
votes
1answer
38 views

Where is the /blog/ url set from?

I'm having a weird issue while setting up a site. It almost seems as though the /blog/ url is reserved or already in use, only it isn't as far as I can tell. I setup a new page called 'Blog' and set ...
8
votes
2answers
366 views

What's the purpose of the paged.php file?

In context of the template hierarchy chart? From what i gather, the paged.php file is something to do with an archive?
5
votes
2answers
308 views

Looking for WordPress System Diagrams

I am looking for WordPress chart/diagram system design. I found only the template hierarchy diagram, but it's only part of the system. source: ...
0
votes
1answer
35 views

Strange Behavior of Page Template Dropdown

My wordpress is updated to latest version 3.4.1 and I noticed a strange function of it - in the Page attributes block page template dropdown has the value: ...
0
votes
1answer
110 views

templates with page teasers Or Featured Items

I've been given a design for a WordPress site which will be mostly made up of pages rather than posts. However, at the top of each page there needs to be three featured items in a row. Each featured ...
1
vote
2answers
110 views

Templates have disappeared from drop down lists

I think this happened when I upgraded to 3.4, or it might have happened more recently. The template drop down list is now missing most of my templates. Pages that were using the templates are still ...

1 3 4 5 6 7 12