Custom Index Page (4 posts)

  1. juggernott
    Posted 10 years ago #

    Hey WordPressers!

    I've looked around at the Codex explanations and I'm having issues finding a way to do the following:

    I'd like to have two seperate calls for posts on my main page. IE: at the top, I'd like to call 1 post in my site news category (lets say category #2), and then underneath that I'd like to call the 4 most recent posts in all categories. I see that it's possible to limit the categories outside of the loop, but I don't want the changes to affect the entire index page.

    This is essentially what I want to happen:

    SITE NEWS - (1 post from category#2)
    NEWEST RAMBLINGS (4 posts from all other categories)

    Hope someone can point me in the right direction - I'd greatly appreciate it! Thanks in advance.

  2. juggernott
    Posted 10 years ago #

    anybody? please? I will love you forever.

  3. monkeypup
    Posted 10 years ago #

    I am struggling to do this myself, but I think I can help.
    Check this link out.

    It's a section on the Codex about Multiple Loops, with customization to call different posts as you describe. You'll need to get familiar with the wordpress loop (the php that calls the posts), but that's in the same link if you scroll up.

    Hope it helps.

  4. juggernott
    Posted 10 years ago #

    Thank-you muchly. I will see what I can do with this information. I hate so much how nothing ever works the first time. haha. I'll probably be figuring this out for awhile but thanks so much for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.