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
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 ...
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
92 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
57 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
34 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
66 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 ...
0
votes
2answers
392 views

How to remove notice inside search.php when no results are found?

I have created search.php from Twenty Eleven theme search template. Search template works fine but i am having a problem when no results are found. I am getting this PHP Notice: Notice: Trying to get ...
0
votes
0answers
33 views

Fields for different parts of a page

I'm going to use WordPress to manage a mainly static website. Some of the pages (like the typical about us) have some paragraphs that should be editable from the admin panel. The thing is, I don't ...
0
votes
2answers
162 views

Change path of the page's template

It's possible to create templates for pages with that: <?php /* Template Name: Contact */ ?> This templates are located on the theme folder, right? Is possible to change the default path where ...
0
votes
1answer
36 views

Page template with custom html fields inside a content

I'm writing a custom page template and I want to do something like this: after typing tag inside page content, for example [custom-email-form] I want to place inside the content some html5 email form. ...
0
votes
1answer
601 views

change the Theme dynamically

Is there some way to change the page template dynamically using just a url I wanna use it in a demo theme, so for example when the user enters a particular URL ending with for example ...
0
votes
1answer
41 views

Custom Menu based off custom header

I'm using my Child of TwentyTwelve Just for your knowledge, I have two sections to my one WordPress site... one is called pain, the other called anesthesia (It's a medical site for the curious). I ...
0
votes
1answer
43 views

When importing a database any page with a wp_query in doesn't work

I've noticed this a lot, when I export a database from a test site and import it into a live site, any (or most) page with a wp_query in it doesn't show up correctly (It shows the theme, but as though ...
0
votes
2answers
44 views

WordPress & External Page: 404 error in IE and some others

I'm working some API. Core is WordPress. Okay, let me paste a sample: <?php include_once('../wp-blog-header.php'); $roll= esc_attr($_GET['roll']); if ( $roll != "" ) { $args = array( ...
0
votes
1answer
2k views

Custom post type archive and single.php files not working

Hi I've created a custom post type called shows. here is the code for it. <?php add_action('init', 'show_register'); function show_register() { //arguments to create the post type. ...
0
votes
0answers
196 views

How to dynamically change spots of text in custom page?

When I create a page I'm suppose to describe the content on the editor of Wordpress. When it's a simple text with some images its ok. But the problem is: My custom layout has a lot of deep HTML and I ...
0
votes
1answer
30 views

Group pages by custom field values

I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2. My question: Will it be possible to build a summary page template say for Brand, ...
0
votes
1answer
454 views

How can I set full width page layout in a default post page?

I want to set up my site so that when I go to any post then it should show full width page. This theme already has a full width page but I wanted it to show in the default width page. How can I ...
0
votes
2answers
156 views

Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)

I've spent a few days researching working with WP static pages - as separate from posts. Although I've found useful guidance, I can't seem to find any good tutorials or worked examples that show me ...
0
votes
0answers
169 views

Permission denied in template-loader .php

Oh man. I tried to create a custom page template for a page on my site page-cumberland-principles.php When I go to view that page, the page showed up completely blank. I used wp_debug, and found ...
0
votes
1answer
140 views

Page Template Dropdown - Missing In WordPress MultiSite

I am using WordPress Multi-Site and on the page edit screen I am completely missing the Page Template drop down. I have tried looking in Page Options and it's missing from there as well. If I enable ...
0
votes
1answer
30 views

What's the most minimal way in which a page can be hooked into WP?

I do a fair bit with custom API's on WordPress-based sites, typically by creating page templates. However, creating a custom page template, then creating a WP Page that utilizes it is kind of a pain ...
0
votes
2answers
165 views

Add #sidebar-2 to a custom page template

I registered a few custom sidebars, and the corresponding code in my version of TwentyTwelve theme now looks like this: register_sidebar( array( 'name' => __( 'Sidebar #1', 'twentytwelve' ...
0
votes
1answer
319 views

Wordpress theme: Add page content to the bottom of the Contact form

I am using the following wordpress theme, which is pretty cool btw.: http://demo.s5themes.com/?theme=simplecorp Now the site has a custom Theme Options build in, where you can specify all the content ...
0
votes
0answers
73 views

Same Loop on Multiple Pages

I have my main loop (loop-entry.php) pulling to my index page which is my homepage on this site: http://snippetmagazine.com/ when I tried to copy that loop and create (loop-blog.php) and included it ...
0
votes
1answer
249 views

Load php file with jquery in single.php

I implemented in my worpdress theme ios button switch and when someone click the button the script load a php file with the text: on or off Here is the code: <script type="text/javascript"> ...
0
votes
2answers
1k 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
1answer
62 views

How to use shortcode inside of shortcode in theme

I am trying to place a shortcode inside another shortcode within a page template, however the various attempts I've made seem to not do anything. Here's how my code looks now - <?php echo ...
0
votes
1answer
118 views

How to use get_template part in the plugin?

I was using the entire template in the plugin, but I would like to use get template part, so that I can reuse the header and footer in the original template. The code is like this: add_filter( ...
1
vote
1answer
78 views

Wordpress showing 404 page template for unpublished posts

When I open a URL that point to a post which is not published yet, wordpress shows a 404 page. But I want to show a meaningfull message to user that "this post is not published by admin, please ...
0
votes
1answer
30 views

Why do some pages on my site use the previous theme?

I have developed a WordPress website using a Child Theme, I started with Twenty Ten as the base, then I created a new and improved version with Twenty Eleven as the base and some new features, now I ...
0
votes
2answers
834 views

How to display posts on a static page? (like search loop)

How do I display the loop inside a static page? Like the loop when I use the search (which in this theme it's actually working) or on index.php An example for what I'm saying can be seen here: ...
1
vote
0answers
70 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 ...
0
votes
2answers
79 views

Create a new page for each form selection

I have a got custom page template which displays a drop down box that has list of countries.A user selects the box and clicks sumbit.Page then then displays the relevant details for that country .IT ...
0
votes
1answer
111 views

How to differentiate the homepage structure from the category page structure in WordPress template?

I am very news in WordPress world and I am finding some difficulties with creation of a personal template. I want implement a blog like this one (that is using WordPress): ...
0
votes
1answer
246 views

Using custom post types within a section of a template

I'm trying to get the hang of custom post types and I am trying to get them to loop through the post types within a page template. I'm already using the MultiEdit plugin to display certain content ...
0
votes
1answer
95 views

Do I really need the div class entry?

I was wondering if it's really neccessary to keep the <div class="entry"> in the page.php file (or any other template for that matter). I typically use a blank HTML5 wordpress theme and it ...
1
vote
1answer
386 views

Page Templates - this code only works for one Custom Post Type

I have the code below in my functions.php file, it works great and allows me to use page templates in my custom post type 'services'. I have defined which 'type' to use on the first line with ...
0
votes
1answer
205 views

How to bypass 404 for certain pages/posts?

I have a site with urls like so: site.com/folder/page-name It is moving to another site built in wordpress and I am trying to recreate the page to ensure incoming links continue to work as normal. ...
0
votes
1answer
98 views

Display one post in different formats conditionally

I think I just coded myself into a corner. I am setting up a page with an image. The image is an imagemap with lots of links. When you click on the link, it opens a post in a colorbox. So far I have ...
1
vote
1answer
2k views

Display all posts for taxonomy term across multiple custom post types

I'm currently creating a website that uses several content types, (e.g. books, movies, shows) as well as a key taxonomy term (e.g. status, with values of owned and wishlist). My question is, in a ...
1
vote
1answer
582 views

jQuery Ajax() doesn't work when the page is accessed as a WordPress template page

In one file (test_ajax.php) I have a which on change loads another page (registration_form_race_type.php) with a short message via jQuery Ajax(). It works fine when "test_ajax.php" is accessed via its ...
4
votes
1answer
118 views

Using a page template without a page

Does anyone know if it's possible to use a page template on a URL, even if a page doesn't exist for that page? When building sites, I create the relevant pages to ensure use of the templates, but ...
1
vote
1answer
483 views

How to remove the Template drop down, but keep Parent and Order

I am about to turn a custom Wordpress site over to a client and do not want them to be able to choose/edit Templates, but need to allow them to sort the pages with Order and choose a Parent page. Is ...
1
vote
2answers
12k views

How to display page content in a page template?

In my WordPress site, I made a custom page template, which contained a custom query [using WP_Query()]. With that query, I can perfectly get the posts of a certain category. But I want to show the ...
0
votes
1answer
347 views

JQuery load php - php file without the template

I'm about to start writing a php file that will return a JSON array to be used as a JQuery autocomplete source. I want to create my source.php file that loads without the WordPress template. ...
0
votes
1answer
44 views

Loop not showing up on page template

I have a page template and on the page I have a loop such as: query_posts('post_type=post&posts_per_page=5&paged='.get_query_var('paged')); if(have_posts()){ while(have_posts()){ ...
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 ...
-3
votes
1answer
203 views

html blog template to wordpress template

i bought a new template from themeforest and it has a blog template named as blog (the main blog template), blog2 (alternative main blog template) and post which shows the inside of a post. i just ...
1
vote
1answer
423 views

Multiple templates for single custom post type

Does anybody know of a way to modify the wordpress template process so that a single custom post type can be displayed on two separate templates based on the value of a custom field. For example I ...