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

How to Featured content with images in home page?

Today i saw a WordPress blog which is using Featured Articles in its home page. can any one tell me how to add that code manually to my blog only in home page. Here is the screen shot and blog url ...
0
votes
2answers
174 views

Create Template for Custom Post Type same like for Page

I'm making my first custom theme using custom post types and I've encountered one problem. I'd like to make some templates like you can make for Pages (i.e. page-fullwidth.php page-noslider.php etc.) ...
0
votes
1answer
39 views

Show content based on page number

I have a post that I would like to split in to 5 pages and depending on which page the user is on the image at the top of the page needs to change. So page 1 of the Post displays the image in custom ...
0
votes
1answer
422 views

How to use a dedicated template for the Custom Post Type from a plugin?

I'm working through this tutorial on Custom Post Types (in a plugin) wherein the author demonstrates how to force the use of a dedicated template for the Custom Post Type. The author states thus: ...
0
votes
2answers
498 views

Page Template Dropdown For Custom Post Types

I am using the following code to create a dropdown on the edit post screen which will allow users to choose page templates for the post type. The code is working but when I try using it multiple times ...
0
votes
3answers
355 views

Only show content if current page is NOT one of 2 page templates [closed]

I've been using this if conditional statement to only show content if the current page is NOT using a certain page template; if (! is_page_template('template-custom.php')) { <!-- show some ...
1
vote
1answer
439 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
118 views

change top banner content on specific page

I have a static top banner on my website build like this : <div class="row-fluid top-banner"> <div class="container"> <div class="banner-overlay"></div> ...
0
votes
4answers
489 views

how to move <img> from content and place them elsewhere on a page template?

An existing website have many images placed within the content of pages. I'd like to redesign the template, separating the display of text and images. How could i do that?
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
2answers
437 views

Load page template with custom content using a plugin

I want to load the page.php template with the content I specify (using variables and not from the database) if the request contains a particular query string. So lets say a user requests ...
0
votes
1answer
136 views

Custom Post Type Template Insert not working properply

I am trying to insert Custom Template file through the plugin that handle a custom post type. Rest of the plugin working great except the template including part. class ClassName{ public ...
0
votes
1answer
465 views

Multiple single templates?

Lets say i have a custom post type called 'event' that has several custom meta boxes for images, docs, etc.. Would it be possible to have two different single templates? For example: i have a page ...
0
votes
1answer
38 views

Adding pages to the Admin panel

Instead of going to Pages on the Admin panel nav bar on the left to see all the pages that are created. I would Like the pages to show up on the Admin panel nav bar it self. Like a custom post type. ...
0
votes
1answer
18 views

Cannot display default template after switching to custom

I'm having a strange issue with a page. The site has a Default Template (page.php) and several custom templates. A page was created using a custom template (page-services.php), but then later switched ...
0
votes
2answers
587 views

index.php template is used instead of blog page

I am trying to set WordPress so that home page is static, and the blog page is a separate page. So, I created two page templates in my theme., lets call them home_template and blog_template. Then, I ...
0
votes
1answer
125 views

JQuery multiple toggle values

I'm trying to hide/show metaboxes dependant on the page template chosen. This has been working fine until I have come to show a metabox on more than one chosen page template. The below code displays ...
0
votes
1answer
24 views

How can recognize post's category?

I want my plugin to recognize post's categories before post is loaded. i wrote this code but it works in category page not in post's page with the category is specified from me. function checkUser() ...
0
votes
2answers
940 views

Post formats template

I would like to know what template wordpress uses to display post formats archive pages? What is parent template file that is used when there is no specified template file and what is specified ...
0
votes
1answer
505 views

Custom taxonomy subcategories template page

I want to create template page on which i could list and display all child categories of my custom category parent! That's the first level, and when those child categories are displayed i would like ...
0
votes
1answer
578 views

page shows 404 on form submit

I have creating a template page in which i have a form, upon testing it gave a 404 error. should i putting something else in action? `<form action="results.php" method="post"> <!--my ...
0
votes
1answer
452 views

excerpt not showing up

I have a custom template for homepage and in it, i want to display excerpt from some category. but not even the simple the_excerpt() isn't working. i tried the_title and the_content, but only title ...
0
votes
1answer
4k 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
2answers
52 views

Stuck with conflicting loops on page template

I'm really new to WordPress and having a problem with my page template and a sidebar loop. I made a block that displays posts in a category in the sidebar, it also displays a custom field below the ...
0
votes
1answer
61 views

How to remove/replace current page template?

I am writing a plug-in that creates new front/home page from scratch. Below code works nice and it outputs the text before the themes outputs anything. So the question is how can I remove the theme ...
0
votes
1answer
298 views

How to set custom cookies in Wordpress after a form is filled on a page

I have built a custom template for page in Wordpress: page-xyz.php This page has a some content. I want to check cookie. What I want to do is: If cookie is set: //show page content else //don't ...
0
votes
1answer
857 views

How to create custom home page via plugin?

I want to code a plug-in that creates new custom home page. Note that I have never coded any plug-in before. 1) After activation of plug-in user needs to go to the options of the plug-in and set up ...
0
votes
0answers
95 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
1answer
37 views

Remove comment section from new page

I am taking over a wordpress website at work. All of the pages currently do not have a 'Leave a Reply' comment section. When I make a new page, this section exists on the new page. How do I remove it? ...
2
votes
1answer
2k views

Custom Blog Post Listing in Genesis Sample Child Theme

I want to add several images and divs and also customize the look of my Blog post listing... But i can't find the way to do it. Here's the Blog Template code <?php /* WARNING: This file is ...
0
votes
1answer
62 views

Custom page template not recognized with permalinks on

The custom page template shows up when I choose any permalink structure with an ID %post_id% But after I change it to any other structure which does not have post_id in it my page defaults to ...
0
votes
1answer
177 views

Wp_list_pages not showing children with custom page template

I seem to be having problems when using custom page templates using wp_list_pages. These pages are always displayed at the bottom of the website in a menu. The problem is, that they should have a ...
-2
votes
1answer
151 views

Front end user registration form [closed]

I have created front side registration form is as under <?php /* ...
0
votes
1answer
90 views

Setting Custom Wordpress “Posts page” AS “Front page”

While I don’t necessarily wish to establish a "STATIC" Front page, I would like to employ a custom page as BOTH my "Posts page" and my "Front page". I’ve created a PAGE titled "Teaching Kids To…" ...
0
votes
1answer
31 views

Permalink / sub-template issue

I've got a WP page with many subpages with their own template. The main template includes them. Each element with its own template can be received with an id and an anchor that is linked to this idea, ...
0
votes
0answers
166 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 ...
1
vote
0answers
44 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
votes
1answer
95 views

exclude page element from specific pages

I'm using a specific navigation menu that should be present on all but two pages. How can I exclude <div class="portfolio-nav"> from the specified pages(About & Contact)? <?php ...
0
votes
1answer
532 views

Build dynamic page from cURL (HTML page) response with plugin

I feel like I am missing something simple here, but can't figure it out I need to have my plugin build links to a page that is built entirely via a cURL response. I am building a plugin that ...
0
votes
1answer
64 views

Using page template as Static Front Page

I've created a page named "homepage", set the page as front page from Reading > Static Page > Front page and it's nearly working fine. The issue I'm having the blog posts aren't included into ...
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: ...
1
vote
3answers
183 views

Single page theme

I am trying to create single page theme. What i have trouble with is understanding this whole wordpress query logic. There is query object and supposedly i get all published posts like this: ...
0
votes
1answer
154 views

Three step order form, how to go to next step

I have an order.php that is in fact a custom page template. This template loads the first step of my order form via: <?php include('order/order-step-one.php'); ?> Now in this ...
0
votes
1answer
239 views

Multiple search template with separate stylesheets

I'm building a site which needs to have two search bars and two search results templates. One of the search bars is for regular posts, and the other is for a custom post type. I need the two search ...
0
votes
0answers
61 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 ...
0
votes
1answer
47 views

Custom theme template files

Im trying to create a Theme from scratch, its quite challenging, cause im new to WP. I follow this developing process at Teamtreehouse. All is very good, its just, im puzzled with the template file ...
0
votes
0answers
104 views

Custom Page Template not working when site moved from subfolder

I have been testing and redesigning my site in a subfolder: http://theseattlevine.com/wordpress2013 Today I am launching the site and have followed these instructions ...
0
votes
1answer
62 views

Is it possible to have a Theme with built-in physical page files?

I am creating a theme and was thinking if it would be possible to create pages within my theme folder that would reflect the wordpress url + path. So for example I could when accessing: ...
2
votes
1answer
36 views

Returning Variables back into a template

If I put a function that I want to use in a template I can put it into functions.php function myfunction(){ echo 'My String'; } add_action('myfunction','myfunction'); and in a template file put: ...
0
votes
0answers
69 views

Custom field data is not saving

I only have this code, which is in functions.php. I can see the field in admin page, but the data is not saving. add_action('add_meta_boxes', 'home_page_template_meta_box'); function ...