Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Grouping Posts

Is there a method (either via short code or a plug-in) that would "group" posts to show in a particular display.

For example, let say there was a page about Red Books, and another page about Blue Books, and a user created 5 posts for each subject. Is here a way I can show only the 5 posts related dot Red books on that page, whereas I only show the 5 posts for Blue books on that page.

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

+1 Keith Monaghan

I would suggest doing this:

  1. Create categories for Red Book, Blue Book, etc.
  2. Assign each of your posts to one of the categories
  3. Under Appearance > Menus and under the Categories tab, add the categories as links to your menu Screenshot

It should be super simple to setup once you see how it all comes together and give you exactly what you're looking for! I hope ;)

Keith Monaghan
Keith Monaghan
9,494 Points

Yes. You can use either tags or categories to sort your content.