Page error in Strayhorn. (4 posts)

  1. Root
    Posted 11 years ago #

    I have just installed WP 1.5 stable release and tried the page feature for the first time. This is where I am at the moment.
    Is any one familiar with this please ?

  2. lawtai
    Posted 11 years ago #

    hey root, glad to see you back. You need to create a pages.php page, cause it's currently reading off your index.php and generating the errors.


    That'll have some info for you to get started with your pages. It's basically your index, but gut out the loop area, and add the specified function call.

    As an example, this is what I have for my page:

    /* Don't remove this line. */
    <?php get_header(); ?>

    <div id="content">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post">
    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>

    <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>

    <?php endwhile; endif; ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

    <?php get_sidebar(); ?>

    <div id="clearer">&nbsp;</div>

    <?php get_footer(); ?>

  3. Root
    Posted 11 years ago #

    Aaaaaaah. Thanks for that. Its good to be up again.

  4. lawtai
    Posted 11 years ago #

    heh you actaully don't need the wp-blog-header stuff I have, I've just been lazy in cleaning up my code since the upgrade to 1.5

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.