WordPress.org

Ready to get started?Download WordPress

Forums

Any idea how to do this? (post pulling) (4 posts)

  1. evergreen
    Member
    Posted 8 years ago #

    Hi all,

    On my home page, I am trying to show recent posts in two different spots. For spot 1, I want 5 posts and the same for spot 2 (so past 10 posts). How can I do this without showing the same posts? (so spot 1 is 1-5 and spot 2 is 6-10)

    Also, I need the posts to NOT be from category "featured". I can't see to get a grip on how to do it. Any help is greatly appreciated.

    Thanks

  2. Chris_K
    Member
    Posted 8 years ago #

  3. Ms Chris
    Member
    Posted 8 years ago #

    I have no idea where to post this question so I will try here. I am trying to add recent content to my index.shtml page. Is this possible or not? From what I am reading I believe I understand that in order for the content to be displayed you must be running .php. not .html. Is this correct. Any guideance woould be greatly appreciated.

    Ms. Chris
    [sig moderated]

  4. lobsterman
    Member
    Posted 8 years ago #

    evergreen: with the get_posts() function, you can set an offset, so your second group of posts can start with an offset of 5.

Topic Closed

This topic has been closed to new replies.

About this Topic