• Hi,

    I’m new with wordpress and I’m trying to do a simple page of posts. I want a page that regroups excerpts of my latest posts and a link to the full post. I also want the page to show 5 posts and pages navigation buttons to browse all the posts. So far, I’ve been able to show all posts and/or a specific number of posts in the page, but never the navigation buttons would work properly. I’ve been using the code shown here to build the page and removed the category arrays, wich I don’t need.

    You can see it here under the page Nouvelles.

    Thank you for you help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mainguy

    (@mainguy)

    Oh and of course I’ve added the `<?php previous_posts_link(); ?>
    <?php next_posts_link(); ?>` links.

    I think you can not navigate to another page by using the next_posts link or even the next_post link; they are for posts, not pages.
    Posts are written into category’s and when I understand correctly what you want, that is done easier by writing posts and putting them into appropriate categories.
    Because of your prmalink setting I cannot see if “Nouvelles” is a category. If it is, then you limit the number of posts to 5 in the admin panel/read settings.
    Next in your category or archive.php use the postS links you mentioned.
    Next, clicking on a posts title brings you to that full single post. The way it looks is generated by single.php
    To navigate to next or previous full post within “Nouvelles” use next_post (without the S) etc
    <?php next_post_link(' %link', 'Nieuwer bericht &raquo;', TRUE); ?>
    the TRUE lets you stay within the category.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page of posts’ is closed to new replies.