WordPress.org

Ready to get started?Download WordPress

Forums

theme that displays the last 10 posts (10 posts)

  1. leeroi
    Member
    Posted 7 years ago #

    hi,
    I am looking for a theme that displays the last 10 posts.
    Is there any list of themes that have this function?
    thanx

  2. Bodhipaksa
    Member
    Posted 7 years ago #

    That would be get_posts which you can use in any theme you want.

  3. rudolf45
    Member
    Posted 7 years ago #

    Displays where?
    If you mean the main page - any theme can do that... if the blogger looks around in his own admin panel > Options > Reading: Blog Pages... Show at most etc.

  4. leeroi
    Member
    Posted 7 years ago #

    sorry i didn't make myself clear enough.

    i am looking for a theme that displays the titles (with their respective links behind it) of the last 10 posts in the navigation menu. Most themes only show the categories.

    Is this something i have to customize myself or should i choose a "ready made" theme, like e.g. Husna 0.1 by Isnaini Dot Com

    If so, where can i find these types of themes?

  5. Bodhipaksa
    Member
    Posted 7 years ago #

    What do you mean by "navigation menu"? Do you mean a list of links in the sidebar? If so, then refer to my earlier post. This basic wordpress function should work in any theme.

  6. pixelmania
    Member
    Posted 7 years ago #

    I use Water3 1.0 by The undersigned for my blog:

    pixelmania

    This does exactly what you want ... I think ;)

  7. leeroi
    Member
    Posted 7 years ago #

    hello pixelmania,

    yes this is what i mean. I'm talking about the 10 recent posts on the left navigation menu of your blog pixelmania

    Any list of themes that have this function allready available?

  8. leeroi
    Member
    Posted 7 years ago #

    Haecceity, i am new to all this. Suppose i want to use get_posts where do i have to put this command? i mean in which file?

  9. Bodhipaksa
    Member
    Posted 7 years ago #

    Hi Leeroi,

    Which file you'd put the code in depends on which theme you're using. I use wp-andreas01-12, for example, which has a left menu which is in the header.php file. But other themes will do it differently. If you want to have the menu on the left, then that's generally sidebar.php.

  10. leeroi
    Member
    Posted 7 years ago #

    ok thanks !
    i 've figured it out now..
    i used:
    wp_get_archives('type=postbypost&limit=10')

    the thing is i didn't think i had to go and change code manually, i thought wordpress would do everything for me, but if you want to customize there is still a lot of work to do..

    guess i was too optimistic ;o)

Topic Closed

This topic has been closed to new replies.

About this Topic