WordPress outputting post not page

  • # March 23, 2013 at 4:32 am

    I have this wordpress [here](http://bochdewi.co.uk/ysgol-y-berllan-deg/ “The Site”) and this code in the page.php file:

    < ?php get_header(); ?>
    < ?php the_post(); ?>

    < ?php the_title(); ?>

    < ?php the_content(); ?>

    < ?php get_footer(); ?>

    but instead of outputting the page it outputs the blog post. Please can someone help me here.

    # March 23, 2013 at 4:56 am

    You are not using the Loop http://codex.wordpress.org/The_Loop_in_Action so it just defaults to index.php due to Template Hierarchy http://codex.wordpress.org/Template_Hierarchy

    # March 23, 2013 at 5:01 am

    This reply has been reported for inappropriate content.

    But i’m sure it is outputting page.php because the index.php is different in the HTML

    # March 23, 2013 at 5:05 am

    This reply has been reported for inappropriate content.

    Sorry i wasn’t using wp_reset_query();

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed