Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Displaying Custom Post Type Category from Taxonomy

Hi everyone, I have a doozy of a question, and I reckon it might be one for Zac Gordon, but no doubt there's a fair few WordPress champs who might also know this.

I'm creating a site for my wife's day spa using WordPress (obviously) and I am really struggling with trying to display treatment categories and then whatever is contained within that category. I have created a taxonomy called 'treatment-categories' with Custom Post Types UI and setup the custom post type with Advanced Custom Fields. I hope I'm making sense on this cause this issue really makes no sense to me!

Basically I'm looking to have the following on the treatments page:

  • Treatment Category
    • Treatments listed under that particular category

Category i.e. Hair Removal Treatments within that category i.e. Full Leg Wax I have searched and searched Google, all I can find is how to set this up, but I haven't seen any information on how to output the categories to a page.

Any help on how I can accomplish this will be greatly appreciated as I've been stuck on this for days and it's killing me!

Thanks

Stu :)

Ludvík Matějíček
Ludvík Matějíček
12,557 Points

Hello Stu, I don't know this plugin but if you need help with outputing your custom post type creating in this plugin contact his autor.

PS: if you need I can help you setup custom post type without plugin.