L
L
leha782015-11-17 12:11:43
WordPress
leha78, 2015-11-17 12:11:43

How to display the content of multiple pages on one page in a loop?

There are custom made pages. It is necessary to display all custom pages in a cycle on one page. Also in these pages there is a taxonomy, you need to take this into account when displaying. Let's display all pages from the Animal category. I can't do it at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Goncharov, 2015-11-27
@websanya

If we are talking about static pages of the "page" type, then you can make several instances WP_Queryof the class on one page and display the content of different pages in sequence.
As for taxonomy, you can use it get_terms()with a specific taxonomy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question