• My client wants a front page with some text and 5 most recent posts. Then a blog page with all the other posts. Any suggestions?

Viewing 1 replies (of 1 total)
  • Thread Starter tglass118

    (@tglass118)

    I made a new template using same code as the index.php in the theme folder. I pasted into it above the footer call:
    <?php
    global $post;
    $myposts = get_posts(‘numberposts=5&category=1’);
    foreach($myposts as $post) :
    ?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    <?php endforeach; ?>

    Made a new page using this template. Added some text and end up with the text and title of the five posts repeated.

    Looking for thee text at the top and excerpts of the first five posts. Then blog page with the remaining posts.

Viewing 1 replies (of 1 total)
  • The topic ‘How to display posts on multiple pages’ is closed to new replies.