WordPress.org

Ready to get started?Download WordPress

Forums

Page error in Strayhorn. (4 posts)

  1. Root
    Member
    Posted 9 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
    Member
    Posted 9 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.

    http://codex.wordpress.org/Pages

    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:

    <?php
    /* Don't remove this line. */
    //require('./wp-blog-header.php');
    ?>
    <?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'); ?>

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

    <?php get_sidebar(); ?>

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

    <?php get_footer(); ?>
    </div>
    </div>
    </body>
    </html>

  3. Root
    Member
    Posted 9 years ago #

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

  4. lawtai
    Member
    Posted 9 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

Tags

No tags yet.