G
G
Grep12020-09-01 11:56:30
WordPress
Grep1, 2020-09-01 11:56:30

How to display all "posts" of a taxonomy?

Created a new custom post with my taxonomy "otdel".
In the taxonomy, I made 2 headings, “main” and “secondary”, and in the main I added “posts”.
How can I get posts with a heading - main?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-09-01
@azerphoenix

Hello!
Read about WP_Query - https://wp-kama.ru/function/wp_query
Pay attention to the taxonomy parameters
https://wp-kama.ru/function/wp_query#taxonomies
and also to: post
type parameters
https://wp- kama.ru/function/wp_query#post_types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question