• My weblog located at https://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.

    Thanks

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

    Ah, found it: Recent Posts Plugin https://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.

    Thread Starter jalansutera

    (@jalansutera)

    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?

    Thread Starter jalansutera

    (@jalansutera)

    Ah, thank you very much Lorelle.

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

    Whatever the answer was, glad we helped.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Displaying Entry number 10 to 15’ is closed to new replies.