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
43 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
71 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
121 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
116 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
22 views

jquery menu toggle in wordpress

i am using a custom template for few pages look like admin panel, i have taken template code from bootply i have renamed the menu items in left sidebar but the problem is menu toggle dosent work ...
0
votes
0answers
7 views

Displaying Custom Post Type on Page with Same Title

I'm building a sports blog. I have a custom post type called conference. Each conference post contains HTML that is displays the team logos horizontally on my team custom posts as shown in the ...
0
votes
0answers
11 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. ...
0
votes
0answers
14 views

Change page being rendered by custom post

I have a custom post type (Packages) that I want to display a custom page for. The post type is set up like this: public function create_packages_type() { register_post_type('packages', ...
0
votes
0answers
22 views

Separating Custom Template logic

Our site displays athletic race results, and each runner has a specific wordpress user account. We have custom plugin to handle building the html elements. A specific runners page can be seen via this ...
0
votes
0answers
24 views

Single page theme: Can I render other pages with their respective themes within another page?

I'm trying to create a one page theme. I need all the pages created by the admin to show up on one page. I used the following code I found in a similar question in here: foreach ($pages as ...
0
votes
0answers
19 views

save_post action not firing due to old page_template meta data

I have some functionality hooked to the save_post action that wasn't working for a user on a particular WordPress Page. After some digging I found that wp_insert_post() was returning before getting ...
0
votes
0answers
39 views

How to structure WordPress plugin to display data from API

I am creating a plugin that connects to a remote API that has car listings and displays the data that's returned in that call. The plugin essentially does not need to interact with the WordPress ...
0
votes
0answers
38 views

Is this the best way to complete disable category archive pages?

I wanted to disable category archive pages because content in my blog will be presented via a number of pages for which I have custom templates like this: add_action('page_template', ...
0
votes
0answers
36 views

Wordpress Page doesn't load the template selected

I've created a new page called Work and I've added it on the navigation bar; after that I've created a file called work.php in which I want to style the page mentioned above. The problem is that the ...
0
votes
0answers
20 views

category results within page template

to paint a clear picture of what i am trying to achieve, i will describe my current wordpress theme setup: in my theme, i am making use of the following content types: posts, pages and custom content ...
0
votes
0answers
23 views

How custom Wordpress Page Builders work?

I wonder how custom page builders work. I want to create page builder in my theme's control panel. Currently i created simple system which creates Page Templates with generated HTML for each layout ...
0
votes
0answers
71 views

Passing query variables to a custom page template

On my website I have a custom post type called 'theme'. I wanted the homepage to display an archive of themes. For this the only approach that I could think of was to create a page template with a ...
0
votes
0answers
29 views

Include Entire Custom Page Template On Another Page

I am trying to create a "one page slider" where I am creating a custom page template to display multiple pages that I specify. (yes I know there are themes for this- I want to customize it myself) I ...
0
votes
0answers
62 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 ...
0
votes
0answers
30 views

Template for Custom Post Types nested under normal pages (dtbaker 'wiki' pages)

I got stuck trying to display the custom type using dtbakers code (https://gist.github.com/dtbaker/5311512). I guess Im using the wrong single-custom.php This is the hypothetical url: ...
0
votes
0answers
21 views

WP Template Hierarchy - Need help choosing the correct templates

Please see this image to get a better understanding of what I would like to achieve. Please pay attention to point #3 and #4 (notice the permalink structure). The "Homepage" is static ...
0
votes
0answers
27 views

How do I enforce a 404 status for an EXISTING page?

I was able to replace the main query for 404 pages with pre_get_posts but as soon as I point to an existing page, the error changes to 301. What function should I hook to to change the status to 404 ...
0
votes
0answers
46 views

Plural/singular URL schema challenge for section Page template combined with single Custom Post Type template

I'm coming back to WordPress after quite a hiatus (and it's not my normal CMS framework), and I'm working with custom post types for the first time. I'd like to have 2 page templates that support ...
0
votes
0answers
50 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
0answers
18 views

Page template for blog not working

So I have a general template called home.php for displaying all blog posts. All fine. No I've wanted to add the same thing with sidebar, so I've copied it, added sidebar, called home-sidebar.php, ...
0
votes
0answers
160 views

How to get/display specific WP page with beloning page template in DIV (fullPage.js)

I've recently been trying out the really neat JavaScript snippet for fullPage-design from Alvaro Trigo. http://www.alvarotrigo.com/fullPage/. I use it togheter with WordPress with the purpuse of ...
0
votes
0answers
98 views

How to show blog post details on a different page?

I have currently made a template to list my blog posts <?php /*template name: Figures */ get_header(); ?> <?php nectar_page_header($post->ID); ?> <div class="container-wrap"> ...
0
votes
0answers
89 views

How to divide posts (custom post type) content on multiple pages?

I have a custom post type called artist and each artist have some custom fields such as extra text fields and images. I do not want to display all the info about each artist on the same page ...
0
votes
0answers
26 views

Image X or Image Y Based on Meta-Box Input Value

I have a meta box for a film review test site I'm trying to build. I have 3 fields in my meta box, they are $director, $starring and $rating. I want to take the rating, and put it into a page ...
0
votes
0answers
59 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
51 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 ...
0
votes
0answers
65 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 ...
0
votes
0answers
11 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 ...
0
votes
0answers
33 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
28 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
0answers
116 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
55 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
603 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
0answers
36 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 ...
0
votes
0answers
43 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
0answers
51 views

Page/2 in my custom page template throws 404 error

I have a form on that page in where I have used the solution provided at Advanced search form with filters for custom taxonomies and custom fields, that works fine and search results appear OK, but ...
0
votes
0answers
31 views

Page template translation not working

I have a custom post type witch is kind of a general "under custruction" template for pages that are not released yet The problem is I done the po file like for any other page of the theme but it ...
0
votes
0answers
49 views

Is including the loop necessary for page.php?

QUESTION: Is it necessary to include the wordpress loop in page.php? If it is not necessary, why do many themes (including the wordpress 2013 default theme) include it? I noticed this discussion on ...
0
votes
0answers
49 views

Wordpress Programmatically create subpages when a certain page template is used

I've been fiddling for quite some time now but can't seem to figure this out. What I am looking for is this: One creates a page and set it to use a certain page template, say: "Shop Owner" WP ...
0
votes
0answers
27 views

create page for listing custom post type comments

I have a custom post type and I want to create a page which will automatically list all the comments posted under my single-{my-post-type}.php. What is the best practice for creating something like ? ...
0
votes
0answers
25 views

How do you create a default template?

I have several custom templates. When I create a new page, custom templates (Thesis Skin Custom Template) shows "No Custom Template". There are several to choose from in the drop down. The problem ...
0
votes
0answers
86 views

A simple form submission but notice : Trying to get property of non-object

after 3 hours... I give up and I request the wordpress developers community. I have to create a contest on a site based on Wordpress. There are 3 steps : user enters his information if all the ...
0
votes
0answers
129 views

Include a page template along with add_theme_support()

I'm not even sure this is possible but before I start thinking up crazy solutions, I'll see if there is a WordPress way to do it. Here's the deal. I have a timeline jQuery plugin all set up on ...
0
votes
0answers
23 views

Showing certain page without redirection

I need to get any url that starts with "booking" to lead to certain post without redirection. That means all of these URL would lead to post Booking, but the URL would stay the way it is: ...
0
votes
0answers
59 views

Make a custom URL and link to custom Template

I have a set of categories in my WP site. I also have a "team" thing in my site. Now when a user makes a new post he selects a category and then chooses the team to which post belongs. I have added ...