Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

[SOLVED] template pages - unexpected behavior


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 23, 2012, 06:48 AM
mcphoto
 
116 posts · Apr 2009
WP 3.3.2, ATA 3.7.7

Here's an odd problem I've encountered on two different sites in development;

http://chigallery.com/gallery/

Sites needed a front page a bit more complex than the rest of the site; so I used a template page...

Code:
<?php
/*
Template Name: home
*/
?>
The template (in this case "Home") shows up in the page editor, and works as expected.

However, when I set the site's front page to be the templated page... and set the "posts" page to be a news page or blog page (IE, posts are not on the front page)... BOTH pages use the template.

I've tried duplicating Index.php and giving it it's own template name (like "Blog.php") but the POSTS page still uses whatever template is assigned to the front page.

On the site above, you'll see both the home page and the "events" page are the same.

Any ideas?

Last edited by mcphoto; May 23, 2012 at 06:49 AM. Reason: typo
  #2  
Old May 23, 2012, 07:58 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
Make sure you don't have a caching plugin active during development
  #3  
Old May 23, 2012, 08:06 AM
mcphoto
 
116 posts · Apr 2009
Nope, not a thing. Only a couple plugs running, I'll try shutting them down.

Edit: only contact form7 and special recent posts running so far - not the culprits.

Odd that this is on two different sites, on two different hosts.

Last edited by mcphoto; May 23, 2012 at 08:09 AM.
  #4  
Old May 23, 2012, 08:13 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
Oh, name the template something other than 'home'
  #5  
Old May 23, 2012, 08:37 AM
mcphoto
 
116 posts · Apr 2009
Well I'll be dipped in... that did it.

Funny, "home" seems to me a non-technical sort of word; I guess WP or ATA uses that as a definition somewhere. Wordpress uses "front page" to describe it in the interface; though my page name and menu label for the front page is "home", my posts page doesn't use that.

Thanks for the idea!
  #6  
Old May 23, 2012, 08:46 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
There is a flow chart in the Wordpress codex that shows how templates will be called, can't remember where, but I did remember about home.php
Glad it resolved this

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Template for All Pages rickheck Center area post/pages 1 Mar 4, 2012 05:10 AM
Sidebar does not show on template pages cjl921 Sidebars & Widgets 5 Sep 4, 2010 10:08 AM
[SOLVED] Strange Post behavior on some Page pages blueprairie Plugins & Atahualpa 6 Nov 9, 2009 06:34 PM
[SOLVED] Strange behavior on sidebar widgets with Flexi Pages ScottKarlins Sidebars & Widgets 8 Oct 25, 2009 07:21 AM


All times are GMT -6. The time now is 07:12 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.