0
votes
1answer
21 views

Changing permalink name redirects to another template?

I'm creating a template with a few templates with names page-contact.php, page-portfolio.php and page-blog.php. The problem is that when I select a Defaul Template for a page (I expect it to open ...
0
votes
0answers
31 views

wp_list_bookmarks(); not displaying anything

Bizzarely, I can't get the wp_list_bookmarks(); function (inside a page template) to render anything. Hope somebody can point out something obvious! Cheers. Here's my code: <?php /* Template ...
-1
votes
1answer
29 views

How to read a page's “Shortcodes” from the Template File?

Lets say i have a Page, and it contains some shortcodes like: [myshortcode foo="bar" bar="bing"] [anothershortcode foo="bing" bing="bar"] Then how do i read those from my custom Template File, to ...
0
votes
1answer
53 views

Loading custom jQuery and HTML in a WordPress page

I have a simple application I have worked on and would like to load it into my WordPress theme. This app has a /js folder with myscript.js, a /css folder with mystyle.css and an HTML file index.html. ...
0
votes
0answers
52 views

different single.php for different page templates

I have 4 page templates with same query. Is it possible to write conditional statement? If I go to single post view (single.php) from page template 1 (page-main.php) display something (for example ...
0
votes
0answers
27 views

Custom header content within a customer page template

I built a custom page template and everything is working swimmingly. I have a problem however making it so each custom page using the template can insert custom code into the header area. If you ...
0
votes
0answers
26 views

Select page/template from the permalink url

I use permalinks like example.com/projects/project1 for my project pages. They use all the same template. I want to access another template with more details on the project by adding /details to the ...
0
votes
2answers
35 views

creating single page with 2 columns while theme is 3 column

I am using Diapason theme , which gives me an option for both 2 column or 3 columns...My requirement is 1:- all pages except home page (static) should have 3 columns 2:- Home Page should have two ...
0
votes
2answers
53 views

Display random page

I'd like to display a random page that: has a parent page of X or Y or Z, etc. excludes pages with the title "Contributors" The following code works (though without the specific conditions above), ...
0
votes
2answers
27 views

Unable to paginate a custom page query

I have this code on a page called Categories. <?php /* Template Name: Categories */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" ...
0
votes
0answers
30 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
48 views

How to arrange different post categories in template

I'm playing with WordPress for sometime. In my website, there will be 3 possible categories for posts, like: 'offer', 'news' and 'about' (each category with individual content). My attempt is to ...
1
vote
1answer
53 views

How to hook up search results page to a back-end page?

On my site, editors can upload "banner" images to every page on the site. However, I'm having trouble figuring out how to link the search results page to a back-end page (ie the page that appears at ...
0
votes
1answer
37 views

page-name.php doesn't execute on custom template

This one has me stumped. I have a page named 'Login.' I also have a file uploaded in my theme directory called 'page-login.php'. If I select a default theme template, page-login.php executes like it ...
0
votes
1answer
21 views

how bbPress and buddypress add their own page templates to the page template drop down on the page editing screen

Im writing a plugin and need to know how to add a page template in the edit page screen from within a plugin. bbPress and Buddypress both add page templates to this drop down and I can't figure out ...
0
votes
0answers
24 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
1answer
75 views

Fake Single Wordpress Post (Page) Loop

In a plugin, I am building a custom page with add_action('template_redirect', function(){ include(TEMPLATEPATH."/page.php"); exit(); }); add_filter('the_title', function(){ return "Virtual ...
0
votes
2answers
32 views

Listing pages which uses specific template [duplicate]

I have created a template named product.php with the following header: <?php /* Template Name: Product Page */ How can I list, in a sidebar, every page that uses the "Product Page" template? I ...
0
votes
1answer
32 views

Custom single page based on which custom page template is selected

I have two custom page templates ("template-blog-left.php" with the sidebar of the left side, and "template-blog-right.php" with the sidebar on the right side.) but I don't know if there's any way of ...
0
votes
0answers
42 views

How i call multiple template in same menu

I want to call two template in same menu means when i click on tab one then page will open different template and when i click on tab two then page will open in different.I have three template ...
0
votes
0answers
145 views

Page Template Changes Not Showing

I'm dealing with a weird and very annoying bug where changes to a page template file ("contact.php") are not being registered at all by WordPress. I've made sure that the template has been correctly ...
0
votes
0answers
85 views

query_post while (have post) get_template_part()?

My goal: Is to give the user the ability, if they so choose, to create a new category. I have the current categories saved in a separate php file and call them in using get_template_part(), there ...
0
votes
0answers
66 views

nextgen gallery dynamic template not fully functional

I have a template with 2 columns, on the left side is a list of dynamically added gallery titles, on the right is where the galleries themselves show up. It is working for the most part, when I click ...
0
votes
0answers
33 views

Custom page templates readmore tag is not working

Custom page templates readmore tag is not working. When I insert readmore before some word (in WP Editor) that's not working when I visit the page. I don't need post_excerpt();
1
vote
1answer
309 views

How can I pass the ID of a post to a page template by clicking a url?

I have a post gallery and I'm displaying the thumbnails in example.com/gallery. Now this thumbnails are created via posts and when you click on on eof the thumbnails, it will direct you to single.php ...
0
votes
0answers
34 views

Template for page with overridden Theme

I think I've got a somewhat uncommon issue. My wordpress site uses a custom theme, but I wanted to add a blog alongside that, without using multisite because my host charges 3x the amount for such a ...
3
votes
2answers
1k views

Pass PHP variable to javascript

Is there any possibility to pass some PHP variables in javascript so I can use them later? Only in single.php. I heard about wp_enqueue_scripts but with that it is neccesary to declare a path to a JS ...
0
votes
2answers
58 views

Is it possible to activate page template without manually selecting it in wp-admin?

I'm launching a new WordPress theme and was wondering if it's possible to select and activate that specific page's template in code rather than going into the CMS and manually selecting it from the ...
0
votes
1answer
69 views

Using index.php as page template

When you put a name at the top of your index.php like: <?php /* Template Name: Blog Template */ ?> it will work for front-page and it will also create a new page template. I'm wondering if ...
0
votes
1answer
222 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
468 views

WP is not using the select custom template.php that its selected for a page

I created a childtheme: Fisio Inside I have: page-team.php with the name: <?php /* Template Name: Page - Team */ ?> <?php get_header(); ?> <script>alert('its the team ...
2
votes
1answer
291 views

Hide page visual editor if template is selected - redux

The answer given to a previous and identical question is unfortunately not working on my WP install. I'm using a version of the function recommended there. function nim_hide_editor() { $post_id ...
1
vote
1answer
808 views

Shared Content but “Updatable” Through the Main Site

I have been doing quite a lot of research the past week, and have not been able to find a solid answer that fixes my problem. So, I decided to come here to ask to see if anyone knows of how to help ...
1
vote
1answer
122 views

is_home() returns TRUE on page template

I'm wondering why my link: http://localhost/?page_id=3433 returns TRUE on is_home() usage: if(is_home()){ var_dump(is_home()); die('test'); ...
0
votes
2answers
93 views

How to insert category list into post creation page, and retrieve chosen categories?

I would like to display the full list of categories on the Page creation page, so that the user can pick using checkboxes which category posts should appear on that page. I then need to retrieve ...
-1
votes
1answer
109 views

if and else statement not working on the iframe php page

i want to use if and else statement on iframe but it's not working if and else statement not working on the iframe php page <?php if("p=947"){ ?> <iframe width="820px" height="1200px" ...
1
vote
1answer
184 views

How to dynamically save a selected option from page “Templates” selectbox?

When I select a template for a page from the "Templates" selectbox, the selected item gets “value=selected” only after I hit save draft/publish/update. <option value='template-gallery.php' ...
0
votes
1answer
92 views

How do i create a list-posts-page?

I'm trying to create the actual "blog" page that lists all the posts. It seems like such a basic thing, but i can't find out how to do it. Do i create a page and assign it a special template? If i do ...
1
vote
1answer
378 views

Get page by template?

I'm in a complicated situation. I'll try to explain it as easy as possible. Imagine the following pages: Page 1 Page 2 Subpage 1 Subpage 2 Subpage 3 Each subpage of page 2 lists posts from a ...
1
vote
1answer
275 views

Why is custom template not seen as page with is_page()?

I created a couple of templates for a project, which is in fact a child theme of the Contrast theme. In the Wordpress CMS, I can select the templates I created: http://i.imgur.com/PYKqK.png (Can't ...
0
votes
1answer
41 views

how to style an individual page in a category [duplicate]

Possible Duplicate: How to show a post single post in page template im trying to understand how to target a template for an individual post. if i use the following hierarchy for my site, ...
1
vote
2answers
205 views

How do I pass data from page content to the underlying PHP template

Pretty much all of the content on the site is going to be dynamically generated (php + db backend) What is the preferred "wordpress way" of passing data to a php template (set up as a template in a ...
0
votes
2answers
77 views

Putting two themes together to create a complete site

I know my way around WP as probably an intermediate user. In the near future, I will have to integrate the design of a template from a completely different theme into a theme I'm currently using. The ...
-1
votes
2answers
2k views

Custom page template not working

I followed this tutorial for the page specific template -- http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates Created a page through wordpress admin panel - Blog Page URL like -- ...
1
vote
1answer
729 views

How do I create a separate page for each author?

I am working on a website where I have authors listed on a custom-made author's page using code adapted from this site: http://bavotasan.com/2011/an-even-better-author-list-in-wordpress/. When you ...
0
votes
1answer
46 views

building a site with mostly custom styled, static pages.. advice needed

I'm putting together a site that will be compromised mostly of static pages with some dynamic content as well as a blog page. In terms of naming files, what would be the best way to achieve this? My ...
0
votes
1answer
70 views

How can I use Page editor for two separate templates?

On some of my pages (not posts) in my Wordpress site, I need to include a sidebar that display s information relevant to the main content of the page the user is on. I can choose, using Edit Page in ...
1
vote
2answers
608 views

posts page - different lengths of excerpt

is it possible to get wordpress on the posts page to do the following example. the first three posts need to have a large image spanning the width of the title box and a longer excerpt. the rest of ...
0
votes
1answer
285 views

Tag template not returning posts [closed]

I have the following code which SHOULD print out the title of all posts with the associated tag (in this case the tag is 'icon'): <?php $tagname = get_query_var('tag'); ?> <?php ...
0
votes
1answer
213 views

infinite loop on page with comments after changing comments.php and header.php

I am using version 3.3.1 of wordpress but I'm following a tutorial that used version 2.7. After changing my header.php and comments.php code, I'm getting an infinite loop when I view the single post ...