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
1answer
18 views

is_page_template & is_page in functions.php not working

I use the following script to call the maps JavaScript in the page-about.php template. But its actually not working. The scripts are executed nowhere: // Load maps scripts function maps_scripts() { ...
0
votes
0answers
9 views

Send media uploads to different directories

I am making a website for my local primary school, and I have each class page as a separate page template. Rather than have all their uploads go into the general /uploads/ folder I'd like to direct ...
0
votes
0answers
28 views

Make shortcode work in all posts displayed by loop, not just the first one

I have a post archive displaying post and author meta at roadtripsharing.com/road_trip I added a do_shortcode(); in the loop, specifically related to the "New Message" button which opens a dialogue ...
0
votes
0answers
20 views

Wordpress Page using Capitalized URL path

I have created a page abcd with the url path www.domain.com/abcd I also created a page template file called page-abcd.php which is placed within the theme directory. The issue I am having is when ...
0
votes
1answer
16 views

Create page in templates for pages or the pages manager?

In terms of slowness and loading which differences noted in the pages created as a template and created by adminisrtador? Example template page: <?php /** Template Name: My Page name */ ...
0
votes
2answers
25 views

Push Shortcode parameter to template

I'm trying to push a shortcode parameter value to a template file but for some reason I can't get the array value that I'm targeting into a single variable. Here is my code and the shortcode I'm ...
0
votes
0answers
26 views

wp_enqueue_scripts doesn't work for template pages

In my child theme's functions.php I wrote : function add_js() { echo "path is : ".get_stylesheet_directory_uri().'/js/script.js'; wp_enqueue_script( 'script', ...
0
votes
0answers
35 views

wordpress custom numeric pagination next / previous / last not showing

I'm using a custom Numeric WordPress Pagination on a page template using a wp-query, based on this tutorial : tutorial I have the numeric pagination working fine, and the page counter also. but the ...
0
votes
1answer
16 views

Best Practice - Customise a WooCommerce+Wordpress Templates

To integrate customise HTML/CSS to Wordpress without editing default ready theme template from Wordpress Download HTML5Blank Boiler plate modify/overide boilerplate css with our customise Css Create ...
0
votes
3answers
32 views

Editable content on a Custom Archive page

I want to allow my client to change some introductory text on a custom post archive page (eg. archive-unicorn.php), but I can't see how to do this. I guess one way I could do this is would be to ...
0
votes
1answer
28 views

Is it okay to use page template as contact page? [closed]

I am converting my html website into wordpress. Is it okay to use page template as contact page? For example you have contact-us.html <!DOCTYPE html> <html> <head> ...
0
votes
1answer
22 views

What template is used for viewing Media Library Files?

I would like to create a special page template in my theme for viewing the media library files. Currently, when I click a Media Library image file I get a page template from the parent theme. Does ...
0
votes
1answer
16 views

require happens out of order

I have a page template that is including another file via require_once. I want this included file to have access to the $post object but it can't find it. So I ran something like this to see what's ...
0
votes
2answers
34 views

Wordpress custom post type and page

I do using custom post type by lists, "Post_type = color" eg./color My color-archive.php contain just search form. I delete all while loops! I want to expose posts within page templates. ...
-2
votes
0answers
15 views

Pagination doesn't change page at penultimate page

My paginations seems recognize just the first page. In simple terms, it doesn't go over when I click next in a page different from the first. This is my code: <?php /** * Template Name: ...
0
votes
1answer
33 views

How do I display child post types in the parent post type template

I have a custom post type called airports which uses a template called single-airports.php. I have created a new airport called Gatwick and created a child of this called called Gatwick North ...
0
votes
2answers
51 views

Fetching $_POST from Page Template into functions.php

I'm having an issue with the order WordPress is loading page templates and functions.php. I have front-page.php which has $_POST['sort-by'] allowing users to sort posts using a drop-down menu. It's ...
1
vote
1answer
73 views

How to pass a numeric id to a page template?

I am using a Wordpress installation with Wordpress Social Login as a "canvas" for an HTML5-based board game. In the file /wp-content/themes/twentythirteen-child/front-page.php I get the numeric ID of ...
0
votes
1answer
35 views

WordPress shortcode display as plain text

I have a custom templates and I used custom shortcodes to displayed it in the page. But the shortcode is not working, its displayed as plain text only. I already deactivate and reactive the plugin but ...
0
votes
2answers
27 views

Hard Coding Components on a Client Specific Websites

This is something I have been meaning to ask for a while to get some feedback. If you are creating theme template files for a client and you know what needs to go where e.g. buttons, logo, component ...
0
votes
0answers
23 views

loop authors with permalinks to posts for custom post type

I have created a custom post type called "adoptions", I have created an adoption-page.php and a single-adoptions.php. In the adoptions-page.php I have loop which displays all the current post from ...
0
votes
0answers
16 views

Create a custom theme-specific page, invisible in the admin-panel?

I've learned that when I want a custom page, I need to create a page template, create my page and assign the template to it. Also I've read about fake/virtual pages, where the page is generated on the ...
0
votes
1answer
17 views

What is the best way to manage pages content?

My current template has the "onepage" style, but for SEO questions I've decided to change all theme by using pages separately in order to optimize each page and enjoy the best of Yoast plugin. In my ...
0
votes
1answer
32 views

Using a page-template to restrict access based on IP (Frontend)

I've found this advice for restricting the access to a whole WP site via adding a function to the init hook that holds a whitelist of IP adresses. I tried to rewrite that to the condition that only ...
0
votes
0answers
28 views

Displaying Custom Taxonomies that match other posts taxonomy

Here is my setup....I have a custom post type that has 2 custom taxonomies (About Me & Likes). In my page templates I want to show related posts that have tags in the "About Me" section that match ...
0
votes
0answers
9 views

Custom Event's Plugin pages

I'm trying my hand at creating an events plugin from scratch for a client with fairly specific needs. I've gotten so far as setting up the CPT, creating and saving the metaboxes that I need with some ...
0
votes
1answer
33 views

Does get_template_part() content gets parsed if it's not executed?

My page templates are currently built up as shown in first example but I really don't like that half of the template is just sitting there, not being used and takes the server resources for no good ...
0
votes
0answers
11 views

Cannot link my WP Post to PDF Enhanced plugin button to generate a new PDF document of the current page

I am trying to get my "WP Post to PDF Enhanced" plugin to generate a new PDF document reflective of the current page I'm in. The issue is that when I'm using the pluging it keeps downloading the ...
0
votes
1answer
56 views

Need help in creating splash intro page using custom page template

I'm trying to create splash/intro page using custom page template in wordpress theme. I tried following the tutplus.com guide and it works perfectly. But I wanted somewhat modern web design and put a ...
0
votes
2answers
25 views

Plugin create pages and use templates

I have a plugin that is creating a few pages and I want to use the custom templates I made for those specific pages. The pages a creating fine and even one of the templates is working but the other ...
0
votes
2answers
30 views

Single page Template for pages that begin with 'confirmation-'

I am trying to set a single page template that will apply to any page which URL begins with confirmation-. For example (page names): confirmation-tt5, confirmation-556, Should I just create a ...
0
votes
1answer
31 views

Create a variable with string, array or multiple values

I'm running some functions that will allow a user to register their own custom templates to my custom theme from an external directory. They can see these page templates in the wp-admin and they ...
1
vote
1answer
35 views

Child page in custom post throws 404 page not found

Currently I am trying to add a page as a child in my custom post section. The parent pages in my custom posts works correctly, I've set a template file for them as singe-custom_post_name.php. All ...
1
vote
0answers
26 views

Show Custom Post Type meta boxes only on Page Edit

I've went through the laborious process of creating the CPT. I see it on the sidebar of my WP install, I can add new, save data, and on frontend I can output the data. Is it possible with WP to move ...
2
votes
1answer
30 views

how to change link of some wordpress pages

I've made templates for the pages of my wordpress site such as: singup,signin,suggestions. Default wordpress pages link is as follows: doamin.com/signup/ or doamin.com/signin/ or ...
1
vote
1answer
27 views

WP-CLI not setting page template with page_template=“template-name.php”

I'm having trouble setting the page template with wp-cli. According to this post, How do I set and list page_template with wpcli, it looks like: wp post create --post_type=page ...
1
vote
0answers
30 views

Adding the_content() in custom template email

Let my explain the scenario first: I have a very custom page template. That is use in combination with a CPT and a few Custom fields. The CPT is called "werklijsten" (it's in dutch so bare with me) ...
1
vote
0answers
40 views

Creating a Page Template to display all items from a Custom Post Type

To begin with I should note that I'm fairly new to both php and editing in the WordPress-files, BUT I have actually managed to succesfully create a page template that puts out a list of all items in a ...
2
votes
1answer
17 views

Including Custom Post Type posts in a page template contextually (or should I widget?)

Please see the attached mockup… Each element in the sidebar (e.g., Communications) will probably have to be a Page. I'm aiming for maximum flexibility. I am using Epik (a Genesis child theme). I ...
1
vote
0answers
98 views

Problem with multiple shortcode in page template

We have a page (wmnf-events.php) with no content that uses a template file (page-wmnf-events.php). The template has 4 different div containers where each container has the same shortcode but for a ...
1
vote
1answer
45 views

Find the page template of the previous page

I am am working on a listing type theme and have a search results page that take people to a more details page. I also have links throughout the site that will also take visitors straight to the more ...
0
votes
0answers
21 views

Every page on the website has a same theme

I have tried to apply home page theme to all the pages in the top navigation, what the problem is that, i want to know whether if i change a post in one page, will it affect others too ?
1
vote
1answer
27 views

Implement content-nosidebar.php / content-leftsidebar.php

I've been trying to create Page Layout's so that the person using the theme to position the sidebar either on the left, right or have the page as a full width one. I've looked at another theme and ...
1
vote
1answer
66 views

Creating a new page template

Problem I have a template and I want to add new page to my theme for example about. I rename file to template-about.php. Also added comments into template: <? /*Template Name: About Us*/?> ...
1
vote
1answer
44 views

Filter widget outputs

I've been trying to find a good solution for my problem, but I can't seem to find anything on this topic at all. I've got a custom sidebar, created by using register_sidebar and I've used wordpress's ...
0
votes
1answer
60 views

Calling custom plugin class methods from a template

Is it possible to call instance methods of a class from a template file that is loaded by that class? If I try to invoke $this from the template, I get Fatal error: Using $this when not in object ...
0
votes
1answer
36 views

how to get the title, description, pictures on the page?

I created a template, but it does not output anything <?php /* Template Name: Gallery */ get_header(); ?> <section> <div class="row"> <div class="container"> ...
0
votes
1answer
31 views

Template Redirect to /2015 to use page template

We work with non-profits and come across this issue a lot. We need to use a page template for the url structure domain.com/2015 where we'll be adding an "end of year" report. We're not using the ...
2
votes
2answers
129 views

Ordering Posts List By Taxonomy Terms?

I am wondering how to write code to order a list of posts by their terms from custom taxonomies? Here is what I have so far: I have a page that lists all the posts in a Custom Post Type, on one ...
1
vote
1answer
19 views

Why does my content disapear when I make a page to match an archive name?

I made a custom post type called 'education'. I have added several pages to it. When it was first created I could go to http://example.com/education/ and see the posts, but I wanted to edit the ...