Skip Navigation

[Resolved] Group Custom Post Types by Category on Archive Page

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by joelW-3 4 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#1870717

Hi - I have created a custom post type called "Courses" Each course is associated with one Taxonomy term. The structure is somewhat like this:

Adobe (Taxonomy)
- Acrobat (Course)
-Photoshop (Course)
Microsoft (Taxonomy)
-Excel (Course)
-Access (Course)

On my Courses archive page, rather than just listing out all of the courses, I was hoping to group them (or loop over) each of the category terms and then list the child courses, so they appear more organized. I'd like to do something similar on the Archive page for by blog posts. Is something like this possible? Thanks.

#1871493

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

The thing is that to display such structure you will require nested views, one view to loop through the taxonomy and one view to loop through the courses belongs to the specific taxonomy term.

You can not able to group the courses by taxonomy on archive page as we can not nest the archive within the another view.

Please check the following article that may help you:
=> https://toolset.com/2015/07/how-to-group-posts-by-category/

#1872041

Thanks, Minesh. So if I am understanding correctly - what I'd like to do is possible (using similar steps to the article you provided) but the end result can not be placed in an Archive, it would need to go on a separate page?

#1872765

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - that's correct.

You will require a separate page where you should add that nested view.

#1876181

My issue is resolved now. Thank you!