taxonomy-custom.php : show only custom posts with a specific custom field value
-
Hello,
I have a WordPress site with a custom post type “formation“, a custom taxonomy “domain” (specifically used for my custom post type), and a custom field “formation_type” used on my “formation” posts.
What I’m trying to do is to customize the display of my template page taxonomy-domain.php, so that when I visit “mysite.com/domain/social“, I can sort the “formation” posts filed under the “social” taxonomy term, based on the value of a specific custom field : “formation_type”.
I’ll show first the posts that have the value “certification”, then the posts that have the value “diploma”, etc.
So far I have tried numerous solution, but can’t seem to find how to do that.
How would you do that?
Do I need to use multiple loops?
- The topic ‘taxonomy-custom.php : show only custom posts with a specific custom field value’ is closed to new replies.