Forums

A Page Template Applied to A Page Doesn't Show (14 posts)

  1. herbyderby
    Member
    Posted 1 year ago #

    Hello All,

    I have a few different page templates that I use in my theme. One of which is a homepage template that is separate from the second-level pages.

    I have the home page template applied to the homepage, yet it is pulling from the second-level page template.

    BUT when I am logged in to WP (3.3.1), it properly shows. As soon as I am logged out, it doesn't show.

    Troublshooting I've done to no avail: deactivate all plugins. Checked the coding for the page: nothing changed. Checked the functions.php to make sure that wasn't wonky(I have some special stuff in there), checked CSS files to make sure they're loading.

    Any help is appreciated!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Is your home page also your main posts page?

  3. herbyderby
    Member
    Posted 1 year ago #

    No, it isn't. I have no "posts" as in blog posts.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    What do you have configured in Settings -> Reading?

  5. herbyderby
    Member
    Posted 1 year ago #

    Front page displays at static page "Home" (which is the name of the home page). This "home" has the homepage template applied to it.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    OK - what's the name of the home page template? And what's the name of the second-level page template?

  7. herbyderby
    Member
    Posted 1 year ago #

    Home: homepage-only.php

    Second-Level: page.php

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Then it sounds like there is an issue in your homepage-only.php template file.

  9. herbyderby
    Member
    Posted 1 year ago #

    Yeah, I thought so too. I quickly hard-coded a new page with nothing in it but the navigation and photo and then applied the Home page to that template called "random.php" No difference!

    Could it be a permissions thing? Where the outside world can't execute but only users can? Right now, my settings are at 0755 for parent and child directories/files.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Unlikely but what happens if you switch to Twenty Eleven and apply the showcase template file to your home page?

  11. herbyderby
    Member
    Posted 1 year ago #

    Switched to the 2011 theme, made the home page the Showcase Template, and it shows from top to bottom: title, header, main, etc. And, of course, the text that goes in the content area. So pretty much everything it should.

    Here's the url: http://www.tightlinesangling.com

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Well that confirms that it's something funky within your theme that is causing the problem. Any conditionals in header.php? Could you start stripping functions out of functions.php?

    Anything in your server's error logs that might give a clue? if not, turn debug on and enable error logging to see if that throws up anything.

  13. herbyderby
    Member
    Posted 1 year ago #

    Yup, it's throwing up some interesting stuff. Ironically, I do not touch core WP files and it's showing deprecation of certain things, inability to load others, etc.

    http://www.tightlinesangling.com

  14. herbyderby
    Member
    Posted 1 year ago #

    esmi, my deepest, sincerest thanks for you taking the time to ask the questions.

    It appeared a couple plugins didn't play well together (as I thought initially). The debug showed me errors and as soon as I deactivated them, all debugging error messages ceased. Only the standard debugging messages showed, but no errors.

    Again, your time and efforts are greatly appreciated. I would buy you a beverage (or two) of your choice if I could!

Topic Closed

This topic has been closed to new replies.

About this Topic