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

Sarah Armstrong
Sarah Armstrong
9,995 Points

Adding Content in Custom Places - Part 2

When adding recent posts to your front page, we use a query that filters on cat -1, but to exclude featured should it not be -4? As the tagId on the featured tag is 4.

6:44 Up in the title we could see tag ID is equal to 4. 6:49 Now we can come into our front-page.php 6:54 and change category name to cat and featured to -1.

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Hi, just go with what actually works and shows for the current install you're working with ;)

Sarah Armstrong
Sarah Armstrong
9,995 Points

HI Zac, The problem here is the instructions in the video are incorrect. The video correctly shows you how to find the id of the tag you want to show (In this case the featured tag with tagid = 4) by going to the page and looking in the url for tagid, and then one second later you say to filter by a different id value (cat = -1). It would be quite confusing for other viewers.