Display all posts in a custom post type grouped by a custom taxonomy

Posted by Prem Tiwari | Updated on

I found a solution by using a custom query and then grouping it with the term name:

Then by just using a regular foreach query I can just extract the information I want. But I’m still interested in another way if there is, maybe by using WordPress’ own functions.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers