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
31 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 ...
1
vote
0answers
34 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
52 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 ...
1
vote
0answers
115 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
0answers
31 views

how to setup custom content structures

I have some custom pages I need to develop, and I want them to be easily edited by my client. The problem is that the markup is fairly complicated, I want to be able to give them the ability to edit ...
1
vote
0answers
56 views

How to use multiple archive templates for a taxonomy?

I have created a custom post type (product) with a taxonomy (brand). I need to have the basic archive pages (type A) and then custom ones (type B) to create a product comparison page which esentially ...
1
vote
0answers
441 views

get_file_data to read data for Custom Template File?

I have a plugin in which I'm trying to allow users to create their own variants of the styles, and upload them as custom "templates". Essentially these templates are php files with some HTML in them. ...
1
vote
0answers
460 views

Conditional tag to check if 'page.php' is being used?

I'm trying to check whether the page.php template is being used or not. I've tried is_page_template( 'page.php' ) but it doesn't work. I also can't use is_page() because I only want to do something ...
1
vote
0answers
56 views

Could be a namespace conflict (?) with login form and register form on the same page

I have created a "My Account" page template for WP 3.5.2 that displays certain custom data if a user is logged on. If not, the page displays a login form and a link that opens the register form in a ...
1
vote
0answers
98 views

next_/previous_post_link() `in_same_category` appears to fail when true

I'm using the Modernize theme's custom Portfolio type page. In the single-portfolio.php template, I call next_ and previous_post_link(), which correctly display links when in_same_category is set to ...
1
vote
0answers
217 views

Change Post Template based on post meta?

I am trying to figure out a way to use a custom template within my plugin. I would like to avoid using a custom post type if possible. I searched for a way to add my theme file to the dropdown list ...
1
vote
0answers
125 views

Automatic Shortcode Creation with Custom Fields

This is basically a php issue as I'm fairly new to it and can't figure out how to code things the way I want. I am basically trying to pull information from custom fields (grid reference) and post ...
0
votes
0answers
29 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
0answers
28 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-...
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
0answers
40 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
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
59 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
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
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
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
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 ?
0
votes
0answers
49 views

is_page_template wont allow me to enqueue scripts

I want to load specific javascript files onto any page that uses the template hello-world.php below is the code that I have used to target the page, register and enqueue scripts. But for some unknown ...
0
votes
0answers
60 views

Adding Section tag before get_header(); ?>

I am currently working on a WordPress theme using FoundationPress. I have created a custom homepage template which I have labelled home-page.php and assigned as my front page. I would like to make ...
0
votes
0answers
32 views

Custom Page Templates for a complex application - code must sit in a plugin and not the Theme

I am developing a custom set of applications which sit on top of a WordPress site. The theme is developed by a third party, and I have decided it is time to remove the custom page templates from the ...
0
votes
0answers
35 views

Trimming content from the get_post_field

I have a code that is showing the sub-pages contents on the main pages: <?php /* list sub-pages content */ $portfolioID = $post->ID; $portfolio_sections = array( 'post_type' => 'page', ...
0
votes
0answers
33 views

Skip over get_header()?

I'm trying to retrieve the content of a page with AJAX and am hoping that there's a way to essentially skip over the header. What I would like to do is get the rendered content of the page returned to ...
0
votes
0answers
42 views

Page template without header & footer

I have created a page that doesn't use the header and footer. I have closed all the tags, but the page is breaking, nothing appears. My code is like this, <?php /* Template Name: [Blank] /* ...
0
votes
0answers
18 views

How to run function depending on what template is selected in page UI dashboard?

I'm trying to run a function only if a particular template is selected in the page UI dashboard. So basically when someone goes to create a page within wordpress. They can select a template from the ...
0
votes
0answers
19 views

How to set page to be a parent of a custom post?

This question is regarding the navigation menu (wp_nav_menu). The nav menu has two classes that depicts the current page: .current_page_parent, .current_page_item. This works great for both Blog and ...
0
votes
0answers
30 views

Link a page type with custom WP_query variable

Basicly i want the URL : http://localhost/brands/[brand-name] to be addressed to a page template single-brandname where "[brand-name]" is a custom variable introduced in permalink. The Main Brands ...
0
votes
0answers
17 views

Losing Page Description on paginated static front page

I have a static front page with an image slider in the masthead and then products below. When the page loads with a url that is paginated 'www.mydomain.com/page2/' for some reason the markup for the ...
0
votes
0answers
84 views

Creating a Custom Title on a Custom Page Template

Most of our news site is made of WordPress Pages and Posts. Then we have several custom pages that format information from a non-WordPress database. exs. Calendar of Events, Local Nightlife Venues. ...
0
votes
0answers
101 views

How to achieve an elegant way when using ajax to get data for a table in WordPress?

I'm working on the update for a website which wasn't originally developed by me. The task is to have a table on a main page and, if you move a slider with value on it (100, 200, ... 1000), the table ...
0
votes
0answers
32 views

WordPress Template Files added to directory after migration to Debian Server do not load, White Screen of Death

Okay here's the backstory: I run and develop a WordPress-based site. I work mostly in my editor and do not use the core WordPress backend anymore than I have to, I typically just work in template ...
0
votes
0answers
184 views

front end avatar with plugin Basic User Avatars for custom template

I try make front end upload with my custom template profile in front end. But it don't work. Somebody pls help. i follow code from this topic to make a custom template How to edit a user profile on ...
0
votes
0answers
35 views

Using a custom template to fill a page

I have a custom post type, which I would like to display on a standard page (because of my single page layout). I tried this using a custom template, but the page renders completely empty. What am I ...
0
votes
0answers
103 views

Ampersand in Title Causes issues in Breadcrumbs & Sidebar

I'm having a problem with ampersands in Wordpress Page Titles. I have a sidebar that displays the Page Parent Title & a list of children underneath. If the the Page Parent Title has an Ampersand ...
0
votes
0answers
75 views

Header appears twice

I've simple custom page template like this: get_header(); include('pages/index.php'); get_footer(); index.php looks like this. if(!(isset($_POST['full_name']) && $_POST['full_name'] != ...
0
votes
0answers
27 views

How to add class and span to

First of all this is my first wordpress theme where im making So i want to add class to <a> and <span> in navbar and want to looks like this <a class="menu_top" href="/feedback/">&...
0
votes
0answers
65 views

Custom Homepage As Single Page or Custom Post Type?

Conceptual question for the WP community: I need to implement a custom homepage for a new site. It has some custom stuff going on but nothing too crazy: 4 big images, a carousel, some calls to action ...
0
votes
0answers
66 views

Page Template CSS file not loading

I have created a php file and in that file include 'practice.html'; I am including a html file. In the HTML file I have a few CSS files linked. But When I upload the page template (php file) I only ...
0
votes
0answers
36 views

Have custom post template work across multiple themes

I made a custom post type plugin to enter times for a radio show. I entered some css into the single page template and it is coming out very differently for different themes and sometimes outright ...
0
votes
0answers
131 views

Create custom post type just like a page post_type

Here's what I'm trying to achieve: A custom post type with the attributes/properties of a page post_type I'm aware of the supports array which allows page attributes to be used, but this isn't what ...
0
votes
0answers
135 views

Submit form to another template (ugly url)

I've created a submit form with some filters that makes a query request: <form action="<?php echo get_template_directory_uri();?>/list-items.php"> my form here... </form> Created ...