Forums

Display Recent Posts from Each Category on Index (3 posts)

  1. overdoseonjenny
    Member
    Posted 6 months ago #

    Hi,

    My website is http://obsessandconsume.com/. I have been trying to figure out for a few days how to get the front page to list thumbnail, excerpt, title, date, comments, etc. by CATEGORY. For example, if you look at my sidebar, I have like 6 categories. When people first come to the site, I'd like them to see, 6 small sections with category title atop each section. I have it set up very well now, it's just NOT by category. I am looking to show just the very latest post from each cateogry on my homepage. As you can see, I'm almost done, I already enabled the thumbnails and excerpts, now all I need is to have the category be at the top of each and for it to show just recent posts by category. hope that makes sense. someone helppp.

  2. wspencer
    Member
    Posted 6 months ago #

    There are 2 typical ways to do this.

    1. Use a feed parser like Simple Pie (you can get a plugin for it) to pull the most recent entry from your specific category RSS feeds and then display them each in their own div. I don't really recommend it because if your RSS feed has an error, your front page will also display an error.

    2. The other method is to create a custom loop in each of the divs (and be sure to reset the loop!).

    You can get some good examples on custom loops in the Codex.....

    http://codex.wordpress.org/Class_Reference/WP_Query

  3. overdoseonjenny
    Member
    Posted 6 months ago #

    Thank you so much for replying. Hmm.. I am not a pro at this, there's lots of codes on the page you referenced.. any step by step pages? codex is awesome but reading their instructions is like reading a damn history book.

Reply

You must log in to post.

About this Topic