Displaying Entry number 10 to 15 (6 posts)

  1. jalansutera
    Posted 10 years ago #

    My weblog located at http://www.jalansutera.com

    I know the code to display 10 most recent post, that is:

    <?php get_recent_posts($p,10); ?>

    What I want to know is, how to display post number 10 to 20?
    Can we do it? I want to display post number 10-20 in the front page of my blog so it will add the number of posts that can be acess via frontpage.


  2. Lorelle
    Posted 10 years ago #

    There is no WordPress get_recent_posts template tag unless they sneaked one in when I wasn't looking.

    This sounds like something from a plugin.

    To increase the number of posts on the front page of your site, ADMIN > OPTIONS > READ and change the number from 10 to 300 for all that it matters. Then you will have 300 or whatever posts on your front page, search results, categories, and all the non-single web pages.

    Or do you want to show only posts numbered 10-20 on the front page? That would require a Sticky or Adhesive plugin.

  3. Lorelle
    Posted 10 years ago #

    Ah, found it: Recent Posts Plugin http://dev.wp-plugins.org/browser/recent-posts/

    That has the get_recent-posts() tag in it. Only for that plugin, not a part of the packaged WordPress. Check there for information on how to make the changes you want.

  4. jalansutera
    Posted 10 years ago #

    Yes you are true, Lorelle, that we can change the numbers of entries from 10-300. Let me describe:

    The frontpage of my weblog dispaly last 10 entries. And I know the code how to display the last 10 entries. I think it is useless for me to put the code in the frontpage of my blog, because readers are able to access those using each entries. I need code which is able to display entry number 11-21, for example, to be put in frontpage.

    Any suggestion?

  5. jalansutera
    Posted 10 years ago #

    Ah, thank you very much Lorelle.

    I know that wordpress community is so powerful. I got the answer in less than 30 minutes. Amazing!

  6. Lorelle
    Posted 10 years ago #

    Whatever the answer was, glad we helped.

Topic Closed

This topic has been closed to new replies.

About this Topic