Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] template pages - unexpected behavior


  #1  
Old May 23, 2012, 06:48 AM
mcphoto
 
120 posts · Apr 2009
[SOLVED] template pages - unexpected behavior

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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Make sure you don't have a caching plugin active during development
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 23, 2012, 08:06 AM
mcphoto
 
120 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Oh, name the template something other than 'home'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old May 23, 2012, 08:37 AM
mcphoto
 
120 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



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 01:20 AM.


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