How do I output Custom Taxonomies with the custom posts that belong to them?
-
Hello fellow WordPress people ??
Here’s the scenario,
I have a custom post type called: staff_members
Custom post types under that could be names of people with their biographies.
I also have a custom taxonomy called: departments (highlighted in bold below)How do I output the following?
Quality Control Department
- John Smith
- David Feldman
Financial Department
- Mark Robinson
- Richard Carpenter
- Sarah Fisherman
Media Department
- James Shelver
- Alfred Kane
I’m guessing It will have to be a nested loop. The outer loop to output the custom taxonomies values (in bold above).
Then the inner loop will output the custom posts that belong to each taxonomy (the staff members names above)So how do I do that? Is there such a loop?
Thank you for taking the time to read and respond.
- The topic ‘How do I output Custom Taxonomies with the custom posts that belong to them?’ is closed to new replies.