Pages are one of WordPress's built-in Post Types. You'll probably want most of your website Pages to look about the same. Sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently. This is easily accomplished with Page Templates.

learn more… | top users | synonyms

1
vote
1answer
103 views

pull non-wp site into content area of wordpress -or- pull wp header into non wp site?

I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages ...
2
votes
2answers
405 views

How do I modify this page template to show subpage excerpts (not post excerpts)?

I have made a page template which shows linked subpages using this bit of code: <?php $mypages = get_pages( array( 'child_of' => $post->ID, 'sort_column' => 'menu_order', 'sort_or ...
1
vote
2answers
4k views

Create a new template for twentytwelve

Twenty Twelve comes with some page templates: Front Page & Full Width. These are in the folder /page-templates. I've created my own template and saved it into this folder, but it is not ...
3
votes
3answers
789 views

Setting a custom sub-path for blog without using pages?

Warning: fairly pedantic request ahead. I have a design that makes use of posts (I.e., the blog) and a custom post type called "howto". The site front page ("/") has a template that displays the ...
2
votes
2answers
383 views

How to make certain page templates visible to admin only

Making a site for a client, I have some pages that the client won't be able to edit or delete. These pages rely on specific page templates. However, I don't want these templates to be available for ...
1
vote
1answer
93 views

Schedule Sticky Posts

I'd like to display the most two recent published sticky posts by modifying the primary loop. A simple affair with the following loop. However, if I schedule a sticky post to be published in the ...
0
votes
1answer
447 views

Using custom url parameters in a page

Im trying to create a custom image galleri that retrieves images from posts as can be seen here http://kurdaktuellt.se/galleri/ problem in hand is that I'm trying to make the url somewhat user ...
3
votes
2answers
365 views

Dynamically assign same page template to child page as parent

How to assign parent page template to its child pages dynamically?
2
votes
1answer
85 views

How to get full content including template HTML

I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request). Is there a function that will ...
0
votes
1answer
799 views

get tags from custom post type

I have a custom post type called "portfolio" with 2 registered taxonomies : portfolio_category and portfolio_tag. I'm using a custom theme that use a lot of javascript/jquery. So this is how the ...
1
vote
1answer
464 views

Register/Get sidebar?

I can't quite seem to figure out how it works. By default i have a sidebar in sidebar.php that i load using get_sidebar();. That works great (no need to register it), but i have a custom page ...
1
vote
0answers
104 views

Change Post Template based on post meta?

I am trying to figure out a way to use a custom template within my plugin. I would like to avoid using a custom post type if possible. I searched for a way to add my theme file to the dropdown list ...
1
vote
2answers
170 views

Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?

The question says it all, I think. I'd like to create a new submenu page using edit.php which will only display pages which use a certain template file (or files). Possible?
0
votes
2answers
138 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 ...
-1
votes
1answer
87 views

Article Template

have a little problem. I'm currently creating a theme, where the article page is not on the home page. The trouble now is that on the home page below are three content boxes and they should not appear ...
0
votes
1answer
552 views

remove page template from dropdown?

I created a page template, uploaded it, but then changed the template name later. /* Template Name: New Name */ Now, the new template name is showing up on the Page dropdown, but so is the old ...
0
votes
2answers
183 views

Function to check if custom page is used by page?

I have template-clientlist.php now I search on wordpress doc but can find a function on how to check if page used template-clientlist.php template-clientlist.php <?php /* Template Name: Page Of ...
0
votes
1answer
77 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
212 views

Changing the template hierarchy

Is there an easy way to change the WP default template hierarchy? For instance; Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
0
votes
2answers
42 views

Can You Build Page Templates Without Extra Files

I'm very familiar creating page templates in WP and for this project I really just have one page template with an option to switch the sidebar from the right side to the left side. The problem is that ...
1
vote
1answer
417 views

Set page template automatically based on parent

As the title implies, I'm trying to set each new page under X parent to a specific page template. Either through a function/plugin/code eg: if I make a 'swiss cheese' page, that is a children of the ...
4
votes
1answer
916 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 ...
1
vote
1answer
75 views

Limits, not all post are showen when querying for posts by view count

I'm having some difficulty getting a loop that gives me post by most viewed. I started by following this tutorial ...
0
votes
1answer
47 views

Recents posts pulling from different post type

This blog page is pulling from a Page Template called full-width-blog.php. The left of the content is where the supposed general posts should appear. On the right is the sidebar. How could you make ...
-1
votes
1answer
162 views

Changing document title only on a custom page template

Hi can anyone help with the below, please? I want to be able to change the contents of my HTML <title> tag only, so need to write an if / else statement. I'm getting myself a bit muddled as my ...
0
votes
1answer
147 views

Background of default template showing instead of the background of custom page template

Plugins were not working for my custom page template, found out that I needed to put WP_head() and WP_footer(), so did that and the plugins started to work. But now the background changed to that of ...
0
votes
1answer
456 views

Add custom fields to a page template, admin side

I'm adding a page template to the theme I'm currently using. Is there any way to make the admin editor to show some input text fields or other options for the template? For example, I'd need two ...
1
vote
1answer
433 views

display posts from specific category on a page , in thematic child theme?

i have a blog page template , i need to make it display posts from specific category called news this is the template , i use thematic framework child theme <?php /** * Template Name: Blog * * ...
0
votes
1answer
614 views

Add custom PHP and HTML to the_content()

I am developing a wordpress website on the thematic framework. In my child theme i have made a full width page template called resources.php In this page template i have written custom php code which ...
1
vote
2answers
93 views

Determine page content based on page parent

How can I display a gallery shortcode for pages who are children of the page with an ID of 9, and the regular content for pages who aren't? This is what I've tried so far, but it's not working: ...
0
votes
1answer
782 views

Export csv and force download in template page

I'm having trouble trying to build a page that let's someone download a .csv file containing data which is set in a variable from the frontend. My code is below, but the only thing that is happening ...
1
vote
1answer
940 views

How can I have a static title on my blog page?

My blog page is not my homepage. How can I add a title to the top of the page? i.e. "My Blog". Right now there is no title on the page. The title of the first post is at the top. (Sorry it's on my ...
1
vote
2answers
7k views

get page title, url and excerpt of a page

I have the following setup: the front-page is setup as 'static' and it uses a theme page template. On this template / front-page, I need to get the page title, URL and excerpt of the About page. I ...
1
vote
1answer
282 views

How to make text show up - new page template

I created a Page Template following these instructions: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates When I create some text in a test page and apply the template I created using ...
2
votes
2answers
364 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 ...
3
votes
1answer
904 views

Dynamically link to the latest post or simulate request of specific post in page template

I want to have a link in the wordpress menu pointing to the latest post of a specific category. Because I am not able put a dynamic URL in the wordpress menu, my approach was to put a page with a ...
0
votes
1answer
237 views

trying to add custom landing page to Twenty Eleven- can't get rid of Twenty Eleven header/container? [duplicate]

Possible Duplicate: custom, static home page / landing page with Twenty Eleven theme? Live site. I'm trying to have a custom, static landing page added to the Twenty Eleven theme. So far, ...
0
votes
1answer
114 views

How to show a post single post in page template

Currently I've divided posts into 5 different categories, based on the categories I've created 5 page templates. all of the pages are listed into the home page navigation menu. in my home page I'm ...
0
votes
2answers
206 views

Custom fields attached to a page template only show on edit screen when page is saved

When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish). Ideally, the custom field should show when I ...
1
vote
2answers
204 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 ...
-1
votes
2answers
2k 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 -- ...
3
votes
2answers
3k views

Multiple areas of dynamic content in a page

I am new in Wordpress and what I really can't find how to do is the following: I have a new Page created from the CMS. This pages have different modules with text. Take for example this template ...
0
votes
2answers
1k views

Pass $page_id to new WP_Query

Probably pretty simple and more PHP-related than pure WP, but how would one pass the $page_id generated in the first code snip into the new WP_Query () in the second code snip? What I need to do - in ...
1
vote
0answers
109 views

Automatic Shortcode Creation with Custom Fields

This is basically a php issue as I'm fairly new to it and can't figure out how to code things the way I want. I am basically trying to pull information from custom fields (grid reference) and post ...
0
votes
1answer
177 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
143 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
vote
1answer
92 views

Page template across themes

Is it possible to make a page template available to multiple or all themes without having to save the page template in every single theme folder? Maybe something like: themes/globalform.php instead ...
0
votes
1answer
109 views

Wordpress Page Template: Comment Filtering with Querystring

A custom Page Template was developed in order to display a list of products. A WordPress page (/products) was created and the template was applied to it. There is a database which the template's ...
2
votes
3answers
210 views

Is it possible to enqueue a raw CSS string directly from within a template file?

I was wondering if it's possible to enqueue raw CSS as a string directly from within a template file? I'm writing a custom template for a page and need to add some style rules for it. What I want to ...
0
votes
1answer
174 views

Having trouble using this post category query on multiple pages?

I have three pages on my site (Listen, Read, Watch) which each query a different post category: "listen", "read", and "watch" respectively. I created three separate php files with their own unique ...