• overdoseonjenny

    (@overdoseonjenny)


    Hi,

    My website is https://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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • wspencer

    (@wspencer)

    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…..

    https://codex.www.ads-software.com/Class_Reference/WP_Query

    Thread Starter overdoseonjenny

    (@overdoseonjenny)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display Recent Posts from Each Category on Index’ is closed to new replies.