How to print custom post title with the link from a given taxonomy term
-
I have custom post type (products) with a taxonomy (prod_type)
The taxonomy is hierarchical and contain the parent terms and a children terms.
prod_type
1. term1
a. child term1
i. item1
ii. item2
a. child term2
2. term2
3. term3How can I display a list of all custom post type titles in a child term1 when I’m on the page displaying the single item from my child term1.
I can identify the current term name, slug and id. But how to retrieve all items from the database for the current term name, slug and id.
Using WordPress terminology, I need to select all custom posts titles with links from a given taxonomy term.
- The topic ‘How to print custom post title with the link from a given taxonomy term’ is closed to new replies.