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

learn more… | top users | synonyms (1)

3
votes
5answers
3k views

Tools for Converting an Existing Website Design to a WordPress Template?

I know how to do it manually, but is there any tool to help me with that?
0
votes
0answers
12 views

Get template part with Except [duplicate]

I am using <?php wp_reset_query(); query_posts('posts_per_page=20&post_type=post&post_status=publish'); get_template_part('index'); ?> in single post bottom. Its ...
-2
votes
1answer
60 views

why does blog page ignore template [closed]

This is never answered completely anywhere. If there is a dropdown to select what page I want to use for my blog, why would it ignore the template I select? I realize it uses the index. Then why in ...
1
vote
2answers
850 views

How do you check if a WordPress template file exist?

Is there a native function to check if a theme a template file. For instance, if a theme is not using the 'home.php' file, then execute some code...
0
votes
1answer
113 views

Prevent creating multiple image resizes in twentytwelve template

I am using wordpress twentytweleve template and I notice every time I upload an image it creates 3 different thumbnail sizes. In my media settings I have already set medium & large size to 0. It ...
2
votes
2answers
135 views

Adding short codes from a page's content on header and hiding the same from page's content

I have created a page and added the following shortcode from wp-orbit-slider [orbit-slider category="test"] I want the contents of [orbit-slider category="test"] be displayed on the header ...
1
vote
1answer
102 views

Shared Content but “Updatable” Through the Main Site

I have been doing quite a lot of research the past week, and have not been able to find a solid answer that fixes my problem. So, I decided to come here to ask to see if anyone knows of how to help ...
0
votes
1answer
21 views

Tag Posts showing in wrong places

Am using a custom template (tag.php) to show posts related to tag. So when someone clicks on say tag ‘A’ then he/she gets redirected to my tag.php layout instead of default template for archives. I ...
4
votes
3answers
661 views

Custom Post Types 404 Issue

I dont know why my custom post types render the Page not found. This is the code I am using to register custom posts. www.example.com/products/product1/ renders 404 where as ...
2
votes
3answers
1k views

Loading template files from a subfolder in my theme?

I am working on a site that will have up to 30 templates in it. I don't want to have all those templates at the root of my theme folder cluttering up everything. I know how I can modify the ...
0
votes
3answers
127 views

Listing all custom post types using a specific term on the said term's template page, in groups

I have a custom tag-like taxonomy called PEOPLE registered to all post types - both the default and custom ones. I have created a template for a single term named taxonomy-people.php and I'm ...
1
vote
1answer
808 views

wp alchemy multiple image uploader output images to template

I am using wp alchemy to add a custom metabox to my site with multiple image uploader option. This part is working fine, but I have no Idea how to go about outputting the image links to my template. I ...
0
votes
1answer
65 views

Display the first post's comments of category in comments.php template

I want the display the comments from first post of the category only. Example; Category - Post 1 (2 comments) - Post 2 (1 comments) - Post 3 (5 comments) If I am reading the Post 2 or Post 3, I ...
0
votes
1answer
755 views

Prevent 404 of Author pages without posts

How do I prevent author archives without posts from 404ing?
3
votes
1answer
2k views

How to make wp-signup.php a 1-step process [closed]

I'm developing a multisite for Real Estate agents. Wp-signup.php used the wrong page template from my theme (homepage instead of full width page template), so I took the meat and potatoes from ...
0
votes
2answers
70 views

How to insert category list into post creation page, and retrieve chosen categories?

I would like to display the full list of categories on the Page creation page, so that the user can pick using checkboxes which category posts should appear on that page. I then need to retrieve ...
6
votes
3answers
228 views

Is there any way to use get_template_part() with folders?

I'm wondering if there is any way to use get_template_part() with folders? My main folder has a lot of files now because I put every re-usable element in a separate file. I'd like to put them in ...
8
votes
3answers
5k views

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two template files (located in the theme folder)? ...
1
vote
3answers
585 views

Change page template programmatically ?

I have two page templates and Qtranslate installed. I want to choose one or another depending the language selected. Can I do something like this ? if($q_config['lang'] == 'en'){ // load ...
0
votes
0answers
17 views

Custom .php page that contains json for dynamically loaded content [duplicate]

Possible Duplicate: How can I use WordPress functions in my stylesheet? For my wordpress blog, I would like to use some JS to load dynamic content into the sidebar of my cached pages. I was ...
0
votes
2answers
42 views

Create a child Theme or custom Theme

I am new in WP but I 've good knowledge of HTML and CSS. However, my PhP knowledge merely covers some basics. I also have good knowledge of Joomla but I wanted to give WP a chance. I need to make a ...
0
votes
2answers
78 views

Trying to query all posts in category 4

I have the following template page. I am attempting to output all of the articles from the category 4. However I am only getting some of the posts, about 20% of them. Not sure what would be causing ...
0
votes
2answers
327 views

Shortcode in pages or tempate files for custom post type

I am using WordPress to develop a coupon site. Merchant pages are somewhat similar to this. I am using shortcodes in these pages for Facebook Like, Google +1, Customer Review, Codes from similar ...
0
votes
1answer
37 views

Wordpress is adding <!— page-who-we-are.php --> above html

Wordpress is adding this comment above all HTML on my site which is causing problems in IE in which the site won't render properly at all. How do I stop WP adding this? Tried disabling all plugins ...
-1
votes
1answer
175 views

Display HTML5 jQuery Audio Player On Front Page

I would like to display the plugin HTML5 jQuery Audio Player 'centered' on the front page of my site. The plugin comes with shortcodes for posts and pages but my front(home page) only works with the ...
8
votes
8answers
5k views

How do you find out which template page is serving the current page?

When you activate a wordpress theme, it's always a hassle to find out which file to go to change things. Any idea how to simplify things? But on the other hand, considering the get_template_part ...
0
votes
1answer
53 views

Creating Sections for Post Types

I'm trying to create this page structure within WordPress: - Home (http://example.com/) - Blog (http://example.com/blog/) - Blog Post ...
3
votes
4answers
159 views

get page templates

I have this issue where I need to get all page templates. I know there are ways to get them based on their name. I know that I can include a page template but I am trying to include them in the loop ...
1
vote
2answers
441 views

display comment form for specific post id

I have three pages, and I want them all to display the comments form from a post with id=343. What code would I use within the pages to make that happen? Here is what I've tried: <?php $id=343; ...
0
votes
1answer
45 views

get all page templates

I am working on a one page WordPress site. It's the first time I have tried this. I am on the fifth version with various degrees of success. I am starting a new version and I deleted everything in the ...
0
votes
1answer
202 views

Custom Post Type Taxonomies -Posts not showing in Category or Tag pages

I have a made a custom post type called "Member Resources" the posts under this CPT have a few taxonomies such as categories and tags. Tags = "Diversity" Categories = "Guidance" When I go to the ...
3
votes
5answers
1k views

How to rearrange fields in comment_form()

Im using a custom filter to change the fields, but can´t figure out how to change the order of the fields in the comment form. Desired order: comment field (first/top) name email website This is ...
0
votes
1answer
130 views

Use a separate template for the home page only

I use Pinboard theme (it has a very complicated structure, but it is nice). Image how it works Select a template in this way it changes for all posts, pages, etc. and do not give you more choice. I ...
0
votes
2answers
39 views

1 post, 2 templates

I want to be able to render post in two different styles (2 templates). For example, let's say I have the post ID 133, I would like two URLS to access it and so it renders where different template ...
0
votes
1answer
42 views

How do I get the comments section to show up?

My theme does not seem to be showing me the comments section, this is the PHP code I have in my index.php file inside the template folder <!-- Start the Loop. --> <?php get_header(); ?> ...
0
votes
2answers
68 views

Proper Javascript Implementation

Instead of calling a script from a file, I put a number of my javascripts in a template file called codes.php. I then call codes.php in the footer by pasting <?php include (TEMPLATEPATH . ...
0
votes
2answers
407 views

How to Create Template File for Parent Page of Custom Post Type

After creating a custom post type I made a custom template file for the post (single-customposttypename.php). So the URL structure would be: example.com/page/postname, and postname would be the post ...
1
vote
1answer
426 views

Add custom fields when specific templates are selected

I'm trying to make change to a site where with the current infrastructure isn't great as due to how it's been built over the previous site rather then fresh. I have a section of the site which needs ...
0
votes
1answer
55 views

Template file renders on local install, not on web

I've been building a website that involves a child theme of Twenty Twelve and a custom post type with associated custom taxonomy, "area". I've built a template file (cribbed from code found elsewhere) ...
0
votes
2answers
313 views

Creating Multiple Single Posts for Different Categories [closed]

My current work required me to assign a specific stylesheet/appearance for only one category of blog posts in a WordPress blog. By default, all blog post (single page) will use the single.php to ...
0
votes
1answer
410 views

How is WooCommerce cart.php template supposed to be used?

I have a fresh install of Wordpress 3.5 and WooCommerce 1.6.6 (WC from now on) and use the default Twenty Twelve theme. I added a Product to WC and when viewing that product and using the Debug Bar ...
0
votes
2answers
49 views

How to create a template for Pages?

In Wordpress, when creating a page, it shows some options for Template under Attributes, such as: Default, Links, One column no sidebar, etc. Is there a way to add more custom templates to show up ...
0
votes
3answers
245 views

Different header for each category

I'm working on a project where each category should have a custom header page. Any suggestions? I'm just looking for some direction on how to accomplish this.
0
votes
1answer
102 views

Require custom post type if is_admin() - template doesn't show up?

In my functions.php I require PHP files which register custom post types, if I'm logged in as an admin. if (is_admin()) require_once(TEMPLATEPATH . '/custom-post-types/cpt.php'); This works ...
1
vote
2answers
80 views

Retrieve the template directory URI via global or get_template_directory_uri() every time?

One Wordpress function I happen to use frequently is get_template_directory_uri(). While I tried to minimize or avoid its use where I can, I still happen to have more than one call to this function in ...
0
votes
1answer
80 views

Organize template parts and page templates in folders in regards of template hierarchy

Hello and happy new year Suppose one has a large theme composed of several post types, page templates and a bunch of custom loops and template parts which is best keeping in separate php files. ...
1
vote
2answers
26 views

Remove Items from Template Homepage

I've never used Wordpress but am considering it for a responsive church website. BEFORE I purchase space froom a webhost here's my question preceded by a scenario I want: Scenario: I want my landing ...
0
votes
1answer
47 views

How do I get a single page navigation depending on the previous page?

I figured this would be a fairly comon thing. But I can't seem to find out how to do it. Or I'm just not using the correct search terms. I've got a website with a hompage that lists all my posts, and ...
0
votes
2answers
145 views

How do I stop the loop from repeating in my category template?

For some reason, when viewing a category, the posts are repeated - basically the whole loop repeats as many times as there are posts for that category. E.G.: If category_a has 3 posts, the page will ...
-2
votes
2answers
115 views

Removing links to current pages [closed]

Okay, I give up. How do you remove links to current pages from the navigation bar in Wordpress? For example, I don’t want to see the Home navigation link on Homepage or About Us link on About Us page. ...

1 2 3 4 5 13