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

What is the best way to create very custom campaign pages?

Currently I am working with company that has very specific campaigns and each one should have its own very custom presentation page. Since its very different from usual WordPress theme design ...
0
votes
1answer
12 views

Templates list in “Page Attributes” metabox is inaccurate

This may be a simple fix but I've spent a few hours trying to resolve it already. Template names that no longer exist are listed on the Page Attributes templates lists in the Wordpress Admin under ...
0
votes
2answers
2k views

How to edit contents of dynamic_sidebar()?

I know PHP well but I'm new to Wordpress. I got an incomplete Wordpress website. It has a static home page with an Aweber newsletter form. I tried digging into installed theme and in home.php I came ...
0
votes
0answers
19 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
1
vote
3answers
585 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 ...
0
votes
1answer
21 views

Execute php in pages

I need to execute my personal php code in wordpress to print data from a mysql database. I've to execute it only on pages. My idea is to create a file page-pagename.php, copy the body of the page.php ...
1
vote
2answers
19 views

Loading page content into a variable in template

On one of my custom templates, I need to do some work with the content before displaying it. Is there a way that I can load this content into a variable rather than just outputting it to the page? ...
0
votes
0answers
19 views

Page Templates Used in Custom Post Type

The same question was asked here with no real response. They claim it's not possible but I have used plugins that accomplish this. In WordPress I am having a problem figuring out how to use the ...
0
votes
1answer
33 views

Nested custom post types templating

I have multiple custom post types which I nested thanks to a plugin and post I found. I have a custom post type 'landen' ( which should be the parent post type ) and a child post type 'rondreizen', ...
0
votes
1answer
25 views

is_page_template returning false

I'm using woothemes Canvas with a child theme. Additionally, I am using the WP Listings plugin. I am creating a custom listings page template (overriding the plugin template) and I'm having issues ...
0
votes
1answer
24 views

custom template - override plugin template in child theme - issue with scripts

I'm using a custom template for the single-listing.php from WP Listings. I've used my own theme (Canvas by woothemes) single post template, and included the wp-listings code. ...
1
vote
0answers
12 views

same slug for custom postype and page pagintion not working

I have created post type "news" and a page "news" so my url is like http://demoserver.com/testsite/news Here i use page template for news landing and i do not use archive.php page for post listing ...
0
votes
4answers
160 views

Hide Front-End Admin Bar Including 32 px Spacing

I have a custom template and I inserted the following snippet to get rid of the admin bar for the page: function hide_admin_bar(){ return false; } add_filter( 'show_admin_bar', 'hide_admin_bar' ); ...
0
votes
1answer
64 views

Display Child Page with custom fields within Parent Page

I have a parent page with multiple Child Pages. On the child page template I have an include which has customfields. This works perfectly. The custom fields are on the child page in wordpress. The ...
0
votes
2answers
417 views

Assign Page Template Within A Custom Post Type

I have registered a Custom Post Type and created a file called archive-myCPT.php and another one for single posts called single-myCPT.php. What I want to do is to create a page where I will show just ...
3
votes
2answers
583 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
0answers
14 views

How to save custom taxonomy archive as a page template?

I am working with a custom post type (slug: estate_property) which has three custom taxonomies to organize posts (slugs: estate_type, estate_status, estate_location). I created custom taxonomy ...
0
votes
0answers
14 views

Add dynamic url with external page in Wordpress

I'm working on WordPress website, where user can publish his profile using URL. I've number of user who haven't matter with WordPress database. Now website is like: http://www.abc.com/ Now I've ...
23
votes
2answers
15k views

Create custom page templates with plugins?

Is it possible to make custom page templates available from a plugin?
2
votes
1answer
2k 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 ...
-1
votes
1answer
34 views

Template for product-category page [closed]

Where can I find the template that is used for the product-category page? The general template is "page-full.php". But where is the template for the single-product page (single.php?) and the ...
0
votes
1answer
13 views

Display child page on parent

This question has been asked a couple of times and previous answers have helped me get where I am. The goal: Display direct child page on parent page regardless of level Example: parent 1 ...
0
votes
1answer
331 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 ...
1
vote
1answer
30 views

Conditionally display different images before the content in a page template

A few pages share a common template. Each of these pages need different images placed above the main content area. How do I do this? The images need to appear above the editable region (ie WYSIWYG ...
0
votes
1answer
31 views

Parse error: syntax error, unexpected T_STRING on line 1 [closed]

This appears to be simple issue, but I'm not able to solve it. I tried seaching but couldn't find the issue with my code. This issue is in my custom page template. Here is my starting code in page ...
-2
votes
1answer
28 views

How to split the site's layout without damaging this layout? [closed]

I have a site: http://roomble.com and I need to migrate it to wordpress (to be particular, I need in the nearest perspective it's plugins and ability to login thgrough the social networks via ...
1
vote
1answer
69 views

Is there a way to set different post templates for parent posts and child posts in the same post type?

After taking a look through the questions suggested to possibly have my answer, I still can not seem to find something that I references the post-template php files. I have two custom post types that ...
0
votes
4answers
632 views

Showing sidebar-2 on custom template page

Environment: WP 3.5, Twenty Twelve child theme. I created a custom template. Now, I'd like to display the built-in sidebar-2 in this custom template page (instead of the default sidebar-1). sidebar-2 ...
-2
votes
2answers
33 views

My homepage's width has reduced and I can´t fix it [closed]

I am creating a site for a friend of mine and I'm having trouble with the width of my homepage. The homepage is set as a full width page but when you view it it only displays about 60% of the span. ...
0
votes
0answers
24 views

how to add a html page to wordpress using custom page template?

I have created a web page using twitter bootstrap and some javascript functions. Now I have a requirement to add this to WordPress site using custom page templates. But the problem is I don't have ...
0
votes
1answer
20 views

custom page or standalone page?

I'm new to WordPress. I have a requirement to implement a live calculator(results updated as you type) in a WordPress site. The site has a simple theme. What is the best way to implement this? ...
0
votes
3answers
49 views

Displaying posts on homepage - Template Page

I created two template pages: galerie.php and homepage.php. Galerie already displays posts. So Homepage is homepage.php and posts page is galerie.php. Now the problem is that I wanted to display a ...
-1
votes
3answers
23 views

Show page name in browser

I am developing my first WP theme and would like to know how to display page name for every page/post instead of just "mysiteaddress.com" How can I set that all my posts and pages show the tittle by ...
0
votes
0answers
17 views

My custom template is displaying 2 Home pages

I'm developing my wordpress theme and I have a problem. I have my homepage.php and galerie.php (custom page templates), the problem is that I want the posts to go to the galerie.php page and not to ...
0
votes
1answer
30 views

Custom Post Type & Page Template

I have a custom post type : add_action('init', 'dossierinfo_register'); function dossierinfo_register() { register_post_type( 'dossier' , array( 'label' => __('Dossiers'), ...
0
votes
1answer
33 views

I want to rel=nofollow wordpress images

I have a default theme. When i add media to wordpress site. By default it use simple "a href" tag I want to add attribute "rel=nofollow" to it. Can anybody please point me in right direction?.
0
votes
1answer
154 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
1answer
26 views

JQuery Plugins in Wordpress

I have been able to somewhat piece together how this should be done but I am really struggling with it. I want to use the Table Sorter plugin (http://tablesorter.com) in a custom Page Template to ...
0
votes
2answers
24 views

Posts don't appear on Template Page

I made a Template page galerie.php and I wanted to show posts there. Why isn't this working? It seems that posts only appear at home page for some reason. The code is: <?php while(have_posts()) ...
0
votes
0answers
20 views

Different content in different pages

I'm developing my second wordpress theme and I guess the following question is really basic but I couldn't find an answer. I have different pages with the same header and the same footer. What ...
6
votes
2answers
2k views

How to Change 404 page title

i have try many methods after searching on internet but unable to ramove Nothing Found from my 404 page title how to do it please help me even i have us this in my 404 page header if( is_404() ) ...
0
votes
1answer
23 views

Query custom post type and showing its content

I am a newbie in developing wp themes and having troubles showing my cpt. I added new cpt in my functions.php file: // Creates Testimonials Custom Post Type function testimonials_init() { $args ...
2
votes
2answers
565 views

Can I create a page template, use it once, then hide/remove the option to use it again?

I am working on a WP theme/project that includes several custom page templates that will only be used once each. For example, there is a page with a map and search form for finding things on the map. ...
0
votes
0answers
21 views

Custom Fields of a custom post within a category list within a page

I need to construct a page containing a list of categories that include a number of posts. Each post has a set of Custom fields that need to be displayed. The hitch: Posts should be selectively ...
0
votes
1answer
252 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
30 views

.htaccess help to a beginner

I have made a custom page template and created a new page which is set to use the custom page template. My URL for the custom page is now: www.domain.no/property The website will have 3 different ...
0
votes
1answer
55 views

Making images from single.php pointing to an attachment .php template

I am trying to make the inserted images from a post (single.php) to point to (single-attachement.php) an attachment page. So far I checked a post here on stackexchange and added this code on the top, ...
0
votes
1answer
28 views

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some ...
0
votes
0answers
53 views

How to place wp-login.php in page or page template?

I want to place the wp-login.php box or page kind of in the templates of the website. As in I want a page which has all of it in. I did search and found that I can use wp_login_form(). Yes, I've ...