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
0answers
15 views

I want to duplicate homepage for all my pages

I want to duplicate my homepage then call the pages A. page b & c. - So that I can edit just a few things on all the pages. I already have some pages but I can't get bits exactly the same.I copied ...
0
votes
2answers
22 views

Special 404 header page

I wonder if there is a specific way to create a custom 404 header template. This can be done for secondary page, but creating a header-404.php doesn't do the trick. Am I really supposed to create ...
-1
votes
0answers
22 views

Should I use a WordPress page as a homepage?

I've made a few themes from _underscores up. Each time I make a theme I try and test different options for populating the sites home page. Various things I've done include; Create a theme options ...
0
votes
3answers
41 views

How can I conditionally show different home page templates based on whether or not the user is logged in?

How can I conditionally load HTML for the home page based on whether or not the user is logged in? Currently my theme has an index.php file. In that file I tried to create: <?php ...
0
votes
1answer
21 views

How to create Page templates for showing Blog posts in different layouts?

I'm creating a Wordpress Theme, and I want to create few Page Templates for creating Blog pages with different layouts. So for example, I want to have blog-4-column.php, blog-3column.php and ...
0
votes
1answer
14 views

loop not showing up when using a custom page template

Okay So I want to create a Custom Page Template that displays my posts exactly the same as my index.php does. You can see the code of my index.php at the bottom. So I create a .php file named ...
-1
votes
0answers
23 views

Custom Post Taxonomy template missing

In my custom post taxonomy, i created more shop categories and added to menu under "shopping". when i click the sub menu [Shop Category], it's going to 404. and the url like Which template file is ...
4
votes
2answers
107 views

Creating Ajax backend for Specialised Page Template? Should admin-ajax.php be used?

We're scoping an upcoming project that will require the development of a large php web application within an existing wordpress site - this is for our use only and we've no intention of trying to ...
0
votes
1answer
21 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
0
votes
1answer
10 views

Create download page from post option link

I have a button download. It's contain the link from post option. I want to when click button download, it will show a download page with the link in post option instead go direct link from it. ...
1
vote
1answer
63 views

Dynamic page.php template for custom post types

I have a couple of custom post types registered. I would like to display all "posts" from each custom post type on its own page, and these pages must be visible in the nav menu. It would be great to ...
0
votes
2answers
17 views

Why am I getting syntax error, unexpected 'endwhile' (T_ENDWHILE) in this template? [closed]

I'm trying to echo a form, when the user is logged in, I get this in the browser when I upload the code: syntax error, unexpected 'endwhile' (T_ENDWHILE) in My code: <?php /* Template Name: ...
0
votes
1answer
20 views

Run next query based on first query's term

I'm creating an authors site. I'm using a custom post type (Books) to display books. I'm using another custom post type (Reviews) to display reviews on the same page as the corresponding book. I'm ...
0
votes
2answers
26 views

Use page template for custom $_GET content

I have a list of products, and I want to be able to click a link and get to a page with more information about the product, which I can do using $_GET like so: $s .= '<p><a ...
0
votes
0answers
16 views

Own Custom Tags/Category page ( posts)

I want to make a page where on each tags : My page should look alike : http://www.missmalini.com/aamir-khan-2/ Above page is coming from http://www.missmalini.com/celebrity-fan-pages/ this are ...
0
votes
0answers
22 views

Create a author subpage

I want to create a author subpage, that looks like this www.example.com/author/user/subpage I read the Wordpess codex about how to create subpages. You can link a page with another page in the page ...
-1
votes
1answer
28 views

Page templates for custom post types

Currently wordpress "pages" can have a particular page template associated with it. Can this feature also be available for custom post types ?
-1
votes
1answer
57 views

Sort Reviews/Ratings by date on Woocommerce

I would like to change the order the reviews are being displayed on the single product page, currently it's in Ascending order and we need it in Descending order.(Most recent to oldest) I've looked at ...
0
votes
0answers
10 views

Pages included in another page and duplicate content issues for SEO

in a recent project I've decided to create a page template (PageX) which is a kind of "stack" of subpages. This template simply includes the content of three other separate pages (PageA, PageB, ...
0
votes
1answer
19 views

Wordpress can't find IXR_Client

Trying: $client = new IXR_Client('http://othersite.com/xmlrpc.php'); I get the error Fatal error: Class 'IXR_Client' not found in footer.php I can see the class in wp-includes/class-IXR.php, and ...
1
vote
1answer
25 views

CPT: archive-cpt.php VS custom page template

I've created a CPT named portfolio. Now i want to create a page which will act as an INDEX for this CPT. Now i've two choices .... a) Make a custom template having custom WP_Query. In this way i can ...
0
votes
0answers
20 views

Custom Loop Using Shortcode in Custom Page Template

I am trying to output a custom loop created using shortcode in a custom page template. Here is the code I am using to generate the shortcode: function archive_sc( $atts ) { // Attributes ...
2
votes
1answer
43 views

How do I deque the default stylesheet?

In order to create a static page template that does not use the site's default stylesheet, I created: page-custom.php header-custom.php footer-custom.php static.css For the most part the page is ...
0
votes
1answer
22 views

Custom Post Type Specific Post Template

I created a Custom Post Type, and here's the entire code: // Register Custom Post Type function wrestler_register() { $labels = array( 'name' => _x( 'Wrestlers', 'Post ...
0
votes
3answers
42 views

Is there a way to create a template that does not have the site styling associated with it?

I recently completed a WP site for a client and they would like to be able have some static pages added to the site that do not have the header, footer and navigation on it. These pages would then be ...
0
votes
1answer
46 views

page_template toggle between 2 templates + 2 permalinks for same post

I'm trying to use this page_template template from the WP forums, with the same aim as the original author: I am trying to use two separate permalinks/templates for a single post - each ...
0
votes
0answers
10 views

Search template content

I have used templates for each page created from wp backend for my site. Like, e.g, Template named 'about' for 'About Us' page. On the template I retrieve posts of specific category using WP Query. I ...
1
vote
2answers
72 views

Display Posts of a Category in Alphabetical Order (Custom Post Type)

I have a custom post type called "link" I have a custom taxonomy for this post type called "link-category" I have a template file for this taxonomy, "taxonomy-link-category.php" I need the template ...
0
votes
0answers
22 views

Is there a way to share a template/markup with the JSON API so that it doesn't need to be declared both in PHP and in JS?

Current Setup I'm using WP's JSON API on a custom post type archive to query some posts. I then parse the returned JSON object to output my markup accordingly. I also have a single post type template ...
0
votes
0answers
20 views

Create custom page from custom rewrite

I want to know how to create a custom page with a custom URL route, but I only found how to define a custom URL and custom route (rewrite URL) to any post-type. The problem is that I don't want a ...
0
votes
2answers
15 views

Custom page Template and Script as a Plugin

I want to Build a custom Page Template. But as far as I know we should not at all touch Core PHP files. let say our Custom Page template is custom.php, then where will this custom.php sit I mean in ...
1
vote
1answer
26 views

Posts are duplicating on wp_post_update

I have stucked in writing a simple function that on certain page update refresh all posts in a custom post type. Here is my code (based on this): add_action('save_post', 'bulk_refresh'); function ...
4
votes
3answers
246 views

Password protected posts redirects

I have a page associated with a custom template that list all password protected posts. Let's name it MyPage. What I'm trying to achieve is when a user views MyPage to show only once the ...
0
votes
0answers
31 views

Page attributes missing

(I searched if anyone has same problem but found nothing. So if this is a duplicate question please let me know) My plan was to create a custome-page-template. So I found some tutorials and recognize ...
0
votes
0answers
30 views

Widget on home page displays wrong time compared to same widget on inside pages

I am trying to use the timely events calendar and I have the upcoming events widget on my home page widget area. The time that displays is not the time I have selected. When I put the same widget to a ...
0
votes
0answers
50 views

Custom Forget Password page

I am trying to create a custom Reset password page. I got this code from a tutorial: <?php /* Template Name: Reset Page */ get_header() ?> <div class="wrapper"> <?php ...
0
votes
1answer
19 views

Custom Same Page Search

I've added a custom form to one of my page templates. It submits to itself $_SERVER['REQUEST_URI'] in hopes I can grab the $_GET values and modify my query using pre_get_posts, but instead it goes to ...
0
votes
0answers
25 views

Normal page, can select named page template, but page.php used instead

In other words, for some pages, I set the named template and update, and the change carries through to the front-end. For other pages, wp-admin shows the changed template name, but that template is ...
4
votes
1answer
85 views

How to create a template for a custom URI associated with the user

I am working on a site where I am using a plugin called Favorite Posts so logged-in users can add a post (a custom post type) to their favorites. I created a page called my-favorites which allows the ...
0
votes
2answers
32 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
59 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
117 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
54 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
94 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
30 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
21 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
25 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
40 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
51 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
35 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 ...