Post Grouping
-
Hi, I just wondered if anyone could help me with a problem I’m having related to this plugin?
I am creating a template to display a custom post type, however, this particular custom post type needs to be dislplayed under different groups on the same page. I have three fields for this custom post type: committee, document and date, what I would like to do is to display a committee name (with normal HTML) and then list the documents for that committee under that heading, then do the same for all of the committees. There will only be 8 committees altogether, and there will never be any change to the names/amount of committees that there is now, but they all need to be separated under their committee headings, and they all need to be on the same page.
Presumably, what I need is code for a template page that will firstly return the posts in this specific custom post type, then to run a loop for each committee and filter the posts for the committee i’m looking for?
I’m sure this is possible, but just can’t get it to work, can anyone help?
The topic ‘Post Grouping’ is closed to new replies.