WordPress.org

Ready to get started?Download WordPress

Forums

add pagination to main index not posts (8 posts)

  1. imagineboris
    Member
    Posted 6 years ago #

    hello everyone,
    this could be a bit of a stupid question. I want to add pagination to my blog, however I'm not talking about individual post pagination, but about when main page shows certain number of post there is pagination for other sets of blog post. so far i mostly found pagination instructions for posts themselves but i want to add it to places like archive and main index.

  2. Michael Fields
    Themer
    Posted 6 years ago #

    Have you tried:

    <div class="navigation">
    	<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>

    right after "endwhile" in the Loop?
    This code will paginate sets of posts.

  3. imagineboris
    Member
    Posted 6 years ago #

    hmmmm that simply adds |<< older entry| and | newer entry >>| links

  4. poe
    Member
    Posted 6 years ago #

    Yes indeed it does. What exactly do you mean by "pagination" then?

  5. imagineboris
    Member
    Posted 6 years ago #

    like page numbers 1, 2, 3, 4 etc.

  6. Michael Fields
    Themer
    Posted 6 years ago #

    Doesn't look like it has been updated in a while, but you may want to try this plugin: http://www.mis-algoritmos.com/2007/09/09/wp-digg-style-pagination-plugin-v-10/

    Note: may not be compatible with 2.5+

  7. imagineboris
    Member
    Posted 6 years ago #

    hi mfields, thank you very much for your help,
    actually that plugin did not work. I fund another one http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html and it works. Thank you everyone for all your help. Have a great time.

  8. akabir
    Member
    Posted 5 years ago #

    Dear all wise :) persons...

    I am talking about adding a pagination with a "PAGE", static page, i am not talking about index/home page.

    we have 2 options with WP 1. page, 2. post

    I have a page with my blog and the content of that page is too large...I want to add "NEXT" and "PREVIOUS" with that page, can i do that?

    plz help...

Topic Closed

This topic has been closed to new replies.

About this Topic