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
12 views

Cascade dropdown not working using JS with Custom page template

I have one file with PHP and JS in my custom page template. In this file I have 3 dropdowns, I tried to apply the cascading but it's not working. When I choose an option in the first dropdown, the 2nd ...
0
votes
1answer
460 views

wp_login_form redirect problem

I have added a login form to a page template using wp_login_form(). This page template is used for a welcome/login page for an online seminar. When the user logs in I want them to be redirected to the ...
0
votes
3answers
51 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 ...
3
votes
1answer
36 views

WordPress calls archive page instead of Custom Page Template

I have created a custom post type called "Projects". My permalinks settings is postname and I'd like to keep it that way. I created a page template named projects.php (Template Name: Projects) and ...
1
vote
1answer
17 views

Categorizing Page Templates

I'm wondering if it's in any way possible to categorize page templates and display them in the dropdown by category. In other words, having page templates defined as being for parent pages that show ...
0
votes
1answer
29 views

WP_Query with multiple orderby NOT working with ASC and DESC, what's wrong?

I have a query with multiple orderby params in a custom page that I am having difficulty getting to work. The query is to return posts with either tag-AAA or tag-BBB tags. And I'd like to sort it ...
0
votes
0answers
32 views

Rewrite URL/Slug for a Page using a particular page template using Advanced Custom Fields Post Object

Edited 5/20 -- Rewrote to specify my question: I have a Custom Post Type represented as mysite.com/projects/{project-name}/. I'm trying to set up a rewrite rule for Pages that use a particular page ...
1
vote
1answer
35 views

Is there any way to get all the name or slug of template parts used in a page?

I am developing a custom plugin where I am using a single page template and changing the template parts only using ajax,I want to retrieve the template parts slugs or name (like custom-header.php, ...
0
votes
0answers
3 views

How to make autogenerated template pages searchable in Wordpress

I have a client that has hundreds of autogenerated pages that are on the same page template, being on a template and not a standard Wordpress page there is nowhere for the Wordpress search to find ...
0
votes
0answers
18 views

Migrated wordpress site to AWS, but strange problem

I have successfully migrated my wordpress site to AWS, the site loads and everything seems to be there. However, when I click on some links on the front end that load up different page-templates I get ...
0
votes
2answers
1k views

Adding Content Areas to Custom Page Template

I am not sure how to ask this, which is why I have been having trouble finding anything via google searches. I am hoping someone here will understand what I am looking for and be able to direct me to ...
1
vote
2answers
48 views

Get Meta from Custom Field of Image URL

I have a custom field that is an Image and the return value of the field is Image URL. I have custom page templates where I render these image fields. Is there a way to get the meta info for the ...
0
votes
2answers
31 views

Video Background - (php & css) - generating 404 error on page load - Wordpress Theme File Structure Help

So i spent the entire day yesterday trying to achieve a full width responsive background video inside of a custom wordpress page template. This is the bg-video code added to landing.php (my future ...
0
votes
1answer
26 views

TypeError: $ is not a function Error using parallax effect in Wordpress Template [duplicate]

I`m trying to include a parallax Effect into one of my cutsom page templates. The js function is returning the following error in the firebug console: TypeError: $ is not a function The error is on ...
4
votes
1answer
60 views

Is it possible to manipulate the list of page templates?

After answering this question I wondered if it is possible to manipulate the dropdown list of possible page templates that's available when you edit a page. WP derives this list from the template ...
0
votes
1answer
10 views

remove initial wysiwyg editor from cms page edit

So I have successfully installed and implemented the Advanced Custom Fields plugin from: https://www.advancedcustomfields.com/ I have applied a set of custom fields to a custom page template, ...
0
votes
1answer
420 views

Loop and add Specific Categories and Products Images

Thanks to Rafael Marques, I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
2
votes
2answers
3k views

Passing parameters to a custom page template using clean urls

I am now passing parameters to a custom template in the following format www.example.com/?pageid=12&rid=24&title=this-is-the-title I have created two tables . So I need to fetch data and ...
0
votes
1answer
20 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
2answers
934 views

Load new Posts on Scroll on Page

See this reference site: http://alwaysjudging.com/archive/ It's loading new posts on scroll down, similar to Infinte Scroll plugin. (But I'm unable to get the Jetpack Infinite Scroll plugin to work on ...
0
votes
2answers
480 views

How to create a custom Wordpress front page

I want to create a custom front page for a Wordpress site, which will have an image, some text, an embedded login form, and a metaslider slider, and nothing else (no menu, no sidebar, no footer). ...
2
votes
4answers
1k views

How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?

I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
3
votes
2answers
789 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
316 views

Trying to list out child pages with WP_Query

I'm trying to list out all the child pages of a custom page I've made. In my custom page, I'm doing this to list out the pages: <?php get_header(); ?> <?php $subpages = new WP_Query( ...
0
votes
1answer
30 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
1answer
9k views

How to add “Template” option in page attributes panel?

I am new in WordPress. In my theme, I do not have "Template" option in 'Page Attributes panel'. I want to add this option. I tried to solve this problem from the following post. But It did not work ...
0
votes
0answers
37 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
27 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
2answers
483 views

Removing the TinyMCE editor for a given page template

I was looking for a way to remove the TinyMCE Editor for a specific page template in a theme (in my case it's page-home.php). I found the following code, which works, however, I was wondering if this ...
0
votes
1answer
47 views

Custom taxonomy page template name and how to use it?

How to specify the page template name for my custom taxonomy and where it should be placed whether in page-template directory or at theme root directory? eg. i have custom taxonomy location_category ...
0
votes
0answers
28 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
48 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
28 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
552 views

Page editor missing Templates drop down

Update: As with so many mysteries, the cause turned out to be extremely stupid. I had the file saved in a different theme's directory. Thanks to @a4jp.com I'm building a theme using underscores. I've ...
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
188 views

How to create a shortcode for custom page template

I have a custom page template and I want it to display on specific pages. The only way I know to do this is to create a shortcode for this custom page template, so that I can use the custom page ...
10
votes
3answers
1k views

What is singular.php?

From 4.3 we have a new template, singular.php. I tried to understand what is it, but I didn't get it. :) The page.php for pages. The single.php for every post types. If we have single-[post-type].php ...
2
votes
1answer
1k views

Define page template in wp_insert_post

How can I set which page template this page, created using wp_insert_post, uses? I want it to use template-blog.php This is my current function; add_action( 'admin_init', 'mytheme_admin_init' ); ...
0
votes
1answer
27 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
2answers
62 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 ...
0
votes
2answers
35 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. ...
0
votes
1answer
17 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 ...
1
vote
1answer
76 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

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
1answer
46 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
30 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 ...
4
votes
2answers
2k views

WordPress keeps fetching the archive page instead of the template page

I have a template set up and I've created a page in WordPress and have chosen the corresponding template in the drop down. I have created templates for several pages of this site and they've all ...
0
votes
0answers
25 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 ...