WordPress.org

Support

Support » How-To and Troubleshooting » Page error in Strayhorn.

Page error in Strayhorn.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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>

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

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Page error in Strayhorn.’ is closed to new replies.
Skip to toolbar