First things first you will have to get started this will work if you’re using CPT ( custom post type) In your theme or plugin development where you have a different term in your taxonomy.
lets you have this layout
- Custom Post = sports
- Taxonomy = types of sports
- term = soccer, NFL, and golf.
maybe you want a different header on each term or you want each section to have its own posts depending on the taxonomy term.
this can be achieved by this method.
create a variable for your term arrays
then you will loop your terms and use if statement in the loop to display specific terms depending on your wish … like this
Good luck with your development and please if this doesn’t work for your.. comment below what code worked for you.