WordPress.org

Ready to get started?Download WordPress

Forums

Page is using single.php not page_template.php (2 posts)

  1. Darfuria
    Member
    Posted 2 years ago #

    I have a bunch of pages that are set to use a custom page template. However, they are using the single.php instead of my page_template.php file.

    This is a copy of the body_class();

    class="page page-id-534 page-child parent-pageid-499 page-template page-template-single-php logged-in">

    I have this code at the top of my page_template.php file:

    <?php /* Template name: Profile */ ?>

    And just the standard

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    on my single.php file.

    There aren't any custom queries running on the page_template.php file.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.