0

I have a custom template that displays search results based on a plugin. The wp_query contains all the taxonomy information to show the proper posts.

How can I have two loops on the same results page? The first would contain posts from the query with the taxonomy of ptype and the term featured.

The second loop contains all the rest of the posts from the main query EXCEPT the ones with the taxonomy of ptype and the term featured.

When the posts are queried they are queried through two other custom taxonomies.

0

Check out the WP_Query() function. You'll be able to run multiple queries and get an array for each post type

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.