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

Woocommerce hooks inside different divs

I am using Woocommerce to power the ecommerce store on my latest project. All is going well however moving hooks, if I try moving, for example @hooked woocommerce_template_single_title - 5 into a new ...
0
votes
1answer
6 views

Show index and not the archive for “Dog Custom Post” with default slug

When creating a Custom Post, in my case with the name dogs and slug dogs, at the url www.example.com/dogs Wordpress shows by default the archive page if has_archive is set to true I don't want to ...
-3
votes
2answers
37 views

Adding custom theme template to custom post type

I've created a new custom post type called MemberPost and want it to follow a slightly different template to my main index (which is where main news is kept). I've created a custom post type and ...
0
votes
0answers
29 views

Custom Page Load by wp_query

Is there a way I can use wp_query to retrieve custom pages and posts, and display them on the front page of my WordPress site? I'd like to do that for every custom page I have, to end up with a one-...
-3
votes
0answers
16 views

Create Post Type with CPT UI and show fields from advancedcustomfields-plugin in post template [closed]

I am using the CPT UI plugin and the advancedcustomfields plugin. First, I generated the Post Type "Matratze" with the CPT UI plugin. Here is the export code out of this plugin: {"matratze":{"name"...
0
votes
1answer
17 views

Delete post: 2 wp_redirect if pages are different

My website allows users to publish and manage posts from frontend. I've created a kind of account section where they have all their posts published which they can edit and delete. They can even delete ...
0
votes
3answers
42 views

Where to put custom page templates in theme?

I am building a theme (parent theme) and I was advised to put custom page templates in theme root folder. I am copying theme twenty fourteen and found this theme using a separate directory called page-...
8
votes
2answers
84 views

How To Create A Paginated List Of All Categories On My Site?

I want to display an archive page with pagination that lists all the categories on my site, and each link goes to that particular category archive page. So this would be like an archive page of ...
3
votes
1answer
46 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
19 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
48 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 ...
1
vote
1answer
41 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
42 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 ...
0
votes
0answers
5 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
21 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
1answer
49 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 ...
5
votes
1answer
70 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
2answers
42 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
12 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, ...
1
vote
2answers
59 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
1answer
55 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
22 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
41 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
17 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
29 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 using:...
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', get_stylesheet_directory_uri().'/...
0
votes
0answers
60 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
40 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
55 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
31 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> <title>...
0
votes
1answer
29 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
18 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
36 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. eg./color/...
0
votes
1answer
37 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
75 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
81 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
52 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
31 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
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 ...
0
votes
0answers
18 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
19 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
45 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
29 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
41 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
22 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
66 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
27 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
33 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 ...