Viewing 5 replies - 1 through 5 (of 5 total)
  • It seems this is the only Page on that site – in that case why isn’t the Page Template just a simple page.php, without those lines at the top?

    EDIT. Are you using any kind of plugins that would interfere with how the Pages work?
    http://wordpress.org/support/topic/46002?replies=26#post-303841

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    Your questions:

    1. I am going to have a lot of Pages on the site as I build this (soon as I figure this out!). Created tplate4pages.php and added those lines because the Codex said to include those lines: http://codex.wordpress.org/Pages#Page_Templates

    Not sure how to get this to pull just the page.php file.

    I do already have a page.php file in my theme. It has the same code as I have put on the tplate4pages.php page, minus those first five lines.

    In an earlier attempt to create a Page, I had tried just using “default template” for the Page template and it also came up a blank Page. I had assumed that “default template” was pulling the “page.php” file, or was supposed to. (Yes?) If not, how do I get it to do that? The only choices I see in the dropdown box are:

    Default Template
    Archives
    Links
    tplate4pages

    Should Default Template produce the same template on my Page as on
    http://www.wellnessu.org/Mind-Body-Spirit-Bulletin/ ? That’s what I’m wanting to do.

    2. I do have a lot of plug-ins installed. One in particular possibly might be affecting this. I’ll uninstall it and see what happens. Maybe I’ll wait for clarification on the answers to question 1 above before doing that. Just in case I’m missing something there.

    Thanks,
    ken

    Wrong order 🙂
    If you have any plugin that affects the Pages – deactivate them. See if the Pages work as they should. After that you can try to play with the plugins.

    And yes: the “deafult Page template” should be the page.php file in your theme. If that doesn’t work with a vanilla installation, you should try to re-upload the theme or that file.

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    I had something wrong in the page.php code. Not sure what, but by reloading the page file, I now have the template showing up on the page.

    Thanks for the help.

    Am continuing to play now and expect to, within hours, actually have this site working and begin truly building out.

    Best,
    kwc

    Thread Starter kenwinstoncaine

    (@kenwinstoncaine)

    I should close this thread.

    Not sure how the “bad code” crept into my page.php file nor what it was intended to accomplish. It was this:

    <?php endwhile; ?>

    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
    </div>

    <?php endif; ?>

    </div>

    </div>

    Any idea what that is intended to do?

    Thanks,
    kwc

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Page not picking up theme –do U C Y?’ is closed to new replies.