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

0
votes
2answers
47 views

How to use custom page templates in a theme that hides page template option?

My client uses a theme called "Imbalance2", which hides the template option in dashboard "page attributes" section. Is there a way to assign a custom template to a page despite this - rather ...
0
votes
2answers
76 views

How to create a wordpress template without using any page

I'm not sure WordPress was build for this, but this is what I'm trying to achieve: I want to make a specific URL inside wordpress accessible, for example www.example.com/some-template . This ...
0
votes
2answers
754 views

Custom Post Type - Archive page title

I'm wondering if I could make a custom Page title for my Custom post type Archive page? Today i'm using: <title><?php wp_title( '|', true, 'right' ); ?></title> For my regular ...
0
votes
2answers
99 views

Custom Post Type Template Alternative

I've managed to figure out how to use Custom Post Type templates now and they are great. I do however want to know if there is not a way to use a current template I have developed for other pages. ...
0
votes
1answer
379 views

Multiple templates for custom post type

This is my setup: I have one post type called "products" and a page (page X) where I use wp_query to list all products, the_permalink(); returns the link to single-products.php. The goal is to use ...
0
votes
0answers
40 views

How to install a wordpress website template on an existing website?

I just downloaded a template called Senna for my website. It's a responsive wordpress template, and I don't have knowledge of how to use wordpress templates. My currently website is html based on ...
0
votes
1answer
22 views

How do I show content from a plugin using the template the site is currently working with?

I am trying to extend the first serious plugin that I am building. I'd like to be able to use it with different sites/templates. At the moment I designed a custom page that I included with the ...
0
votes
1answer
64 views

Display all pages - in order

My goal a single-page vertically-scrolling site. I'm using this code to display all the pages one after the other: <!-- All Pages --> <?php $pages = ...
1
vote
1answer
63 views

Can I use a Custom Meta Value inside of 'get_the_terms'?

I have a custom Page Template, and this is the code that I am trying to manipulate to change depending on a custom meta value that I write for specific Pages. $terms = get_the_terms($post->id, ...
0
votes
1answer
71 views

Custom taxonomy page uses index.php

Read a couple of tutorials (here's one) but I don't understand why I can't make it work. I'm trying to create a page for custom taxonomy terms. Like mysite.com/tag/term or mysite.com/category/term but ...
0
votes
2answers
55 views

Taxonomy term archive default loop returns 1 record instead of 8

I have a Custom Post Type called "book" and a custom taxonomy for this CPT called "books". One term's slug of this taxonomy is "accepting-yourself". Here's the code of the "accepting-yourself" archive ...
0
votes
1answer
46 views

Programatically retreive page content from its template page

I am building a menu and representing it to the front-end in Accordion style using the foundation front-end framework. The Wordpress admin drags and drops menu items (pages, posts, custom posts, ...
0
votes
1answer
42 views

Print the whole page?

I am trying to make a loop to loop all pages beneath each order. I want this because I want to make a one-pager with a page as an element of the one-pager. So that you can go into WP to edit a page ...
1
vote
1answer
52 views

Page Automatically Generated from Theme?

I'm running WordPress multisite and would like each site to have a specific page (with pre-loaded content) generated from a page template, contact.php. Rather than go through each site and create this ...
0
votes
0answers
47 views

Page/2 in my custom page template throws 404 error

I have a form on that page in where I have used the solution provided at Advanced search form with filters for custom taxonomies and custom fields, that works fine and search results appear OK, but ...
0
votes
1answer
48 views

Display pages from specific page template

Okay I have found the following code on line, which seems to be working and displaying all of the pages using the page_library_html.php template. This code only shows the title of them though. Can ...
0
votes
0answers
30 views

Page template translation not working

I have a custom post type witch is kind of a general "under custruction" template for pages that are not released yet The problem is I done the po file like for any other page of the theme but it ...
0
votes
1answer
33 views

create template for one page

I want to create a one page template here and this is the content of page-contactWohnsinn.php: hello world So the php file only contains hello world and is stored in ...wp-content/themes/mytheme I ...
0
votes
2answers
274 views

page template within custom post type

I have registered a custom post type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php. What I want to do is to create a page where I will show just ...
0
votes
2answers
323 views

Filtering posts by category name based on page's slug

I've created a page template and the goal is to create a loop that gets all posts by category name. The category name is passed from the slug of the page name. I haven't been able to get this to work ...
0
votes
1answer
29 views

Setting a new default template for the creation of a page

Right off the bat I would like to say that I am a WordPress noobie, so I'm really sorry if I infuriate you. I've recently taken over the management of a clients website an have been sent a request to ...
0
votes
1answer
150 views

get_template_part() to render single page Theme

I´m developing a single page theme and want to render all pages with their respective templates on a single page. I know I could make a query and write the markup for the respective page, but I prefer ...
-1
votes
1answer
38 views

How do I create a page template that doesn't show URL, sidebar, nav menu, footer?

How do I create a page template that doesn't show URL, sidebar, nav menu, footer? In Rupununi.org if you click on "Atta Rainforest Lodge" image, it will bring out a lightbox which displays the page ...
0
votes
0answers
48 views

Is including the loop necessary for page.php?

QUESTION: Is it necessary to include the wordpress loop in page.php? If it is not necessary, why do many themes (including the wordpress 2013 default theme) include it? I noticed this discussion on ...
0
votes
1answer
36 views

retrieving page content per AJAX [duplicate]

I am currently working on a single page website. I am trying to retrieve the page content via AJAX. The page URL is http://mylocalserver/sad/wp/clients. $.get( ...
1
vote
2answers
32 views

General advice on addressing content-centric pages

I'm looking to port a site into Wordpress that contains not just an About page, but an entire About section with various pages highlighting particular details about the company. Each of these pages ...
0
votes
0answers
47 views

Wordpress Programmatically create subpages when a certain page template is used

I've been fiddling for quite some time now but can't seem to figure this out. What I am looking for is this: One creates a page and set it to use a certain page template, say: "Shop Owner" WP ...
0
votes
1answer
360 views

get comments by current user inside page template

I want to add a page template inside my custom post type and retrieve inside that page the comments posted by current user. I have this code for getting the current user: <!-- GET CURRENT USER ...
0
votes
1answer
91 views

Removing or Restricting Access to Page Templates for Editor Role

I have a question about restricting access to page templates for blog editors who may create new pages in the future. During my buildout, I had to create specific templates to add custom features for ...
0
votes
0answers
12 views

How do I automagically use <!--nextpage--> in custom page template? [duplicate]

I have searched a lot now and not found a real solution that helps me with this: I am creating a custom page template for an archive page. This (static) page will show all my blog posts ordered by ...
0
votes
1answer
130 views

Get content from other database table based on an ID and rewrite URL

I am currently using WordPress with SEO friendly permalinks. One page of my website is a special one though, let's call it http://example.org/locales. It is using a custom page template that loads ...
0
votes
1answer
149 views

Mixing Custom Post Types and Page Templates in Wordpress 3.7.1

Overview I have a Custom Post Type called Locations. When the user visits /locations, I would like them to see some general information about all the locations. When the user visits ...
0
votes
2answers
61 views

Create custom template in plugin and display it into post template section?

Right now i am developing a plugin for one of my client according to their need. But I want the plugin hold all the functionality itself including the custom template. I mean my plugin holds the ...
0
votes
1answer
46 views

How can I put a custom field as the link of a button shortcode?

I have been working on a custom page template, and cannot seem to figure out how to have a custom field for URL's as the link for a button in the loop. Here is my code <?php echo ...
0
votes
1answer
32 views

Display articles related to a custom field on a page

I have a little problem to display some articles related to a parent page. I explain. On the first hand I have a page with a model template. On the wordpress editor part, I create a custom meta field ...
0
votes
1answer
125 views

how to show single post in a custom template

hi i used the below code to list out the posts in a particular category. <div class="wrapred"> <?php if ( have_posts() ) : ?> ...
0
votes
1answer
56 views

How to check if a specific page uses a page template?

I'm trying to get a page which uses a specific template. I have the page_id. Here is my code : $pids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_author ...
0
votes
1answer
191 views

Custom Archive with Content for Custom Post Type

I'm doing a corporate site migration into Wordpress, and need an extremely custom archive page for a custom post type. I know all about the archive-{post type}.php thing, but it needs to be more ...
0
votes
1answer
28 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 ...
3
votes
2answers
489 views

Full width layout for custom post type pages

I'm trying to remove a widget area called 'Primary' from a certain page on a site. This is the function where I manage the sidebars: //ADD CATEGORIES IN SIDEBAR OF SINGLE POST TYPE add_action( ...
0
votes
2answers
186 views

page template for custom post type

I'm trying to build a debates-like system. It will work like this: A page will display the post with a countdown timer, so user will be able to submit comment till a specific period of time. (this ...
0
votes
0answers
17 views

Pagination custom category page template [duplicate]

I want to display product categories on separated pages. Should be 6 posts of 1 category on a page, and if we have more than 6 postings in this category, - so I want to display a pagination. I googled ...
0
votes
0answers
27 views

create page for listing custom post type comments

I have a custom post type and I want to create a page which will automatically list all the comments posted under my single-{my-post-type}.php. What is the best practice for creating something like ? ...
0
votes
1answer
49 views

Edit different parts of a page seperately

I'm an experienced PHP developer without a lot of wordpress knowledge (yet!). I have to put together a fairly simple Wordpress page in the next few days. To get started I need to create a custom home ...
1
vote
3answers
81 views

How do I display the text inside the WP editor for a page with a custom template?

I am working in a Child theme on a page with a custom template. That custom template is not displaying any text that I enter into the wordpress editor. How do I "call" that text and display it in my ...
-1
votes
1answer
308 views

How to create a page template using custom plugin

I am building a plugin. I just want to create page template whenever i install plugin. Page template like full-width template. I have used codes after searching but not able to get success. So please ...
0
votes
2answers
238 views

pagenavi shows alot of pages calculated from all posts in the site with query_posts

I need to excute posts from 2 seprated keywords using s=keyword with get_posts, but only searching in titles. I found this answer. I created a custom template to use it in single page. Then I used a ...
0
votes
1answer
41 views

Modifying and Displaying URL's in a Post Template using parse_url

I have a Custom Post Type with a template named single-posttype.php. I'm using the Advanced Custom Fields plugin to display certain information (price and links to the actual product). All that is ...
0
votes
1answer
62 views

Display Custom Taxonomy of custom post type

I am stuck on trying to create a template page that displays a list of the names in a specific custom taxonomy of a custom post type I created. The custom taxonomy is locations and clicking on a ...
0
votes
1answer
197 views

Problem: ( kriesi ) pagination doesn't work in homepage [duplicate]

When I set this template as homepage, pagination doesn't work. I see the buttons, but when I click the button for page 2, nothing happens, doesn't go on page 2, it still remain in page 1. What is ...