Skip Navigation

[Resolved] How to group posts by category

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to group posts by category or taxonomy term

Solution:
To display posts group by category, you need to use nested views one to display category and one to display posts.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/custom-post-menu/#post-914672

Relevant Documentation:
=> https://toolset.com/2015/07/how-to-group-posts-by-category/

This support ticket is created 6 years, 7 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 2 replies, has 2 voices.

Last updated by deanL 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#914607

I created a custom post type called "Products". I created a custom category for it and called it "Product Categories".

Is there anyway I can generate a menu to be placed in the sidebar in the following format:

Category A
Category B
Category C
Product 1
Product 2
Product 3
Category D

(In this example, user had first clicked on Category C)

#914672

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - yes, It looks like its possible. As I understand - you want to display your categorized products (group by category) with sidebar - correct? If yes:

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

Now, for the GUI, you may use the bootstrap accordion:
=> hidden link
=> hidden link

#914698

This is perfect! Exactly what I was hoping to see, I just couldn't find the right keyword for searching the article.