Loop Query: multiple CPT, sort by 1
-
Hi all,
hope you are all doing fine. My question for you is:
I have this query:
$categoryquery_args = array( 'post_type' => array('movie', 'formule', 'post'), 'post_status' => 'publish', 'nopaging' => true, 'order' => 'ASC', 'orderby' => 'type' )
I want to make sure that all movies are displayed first in the search results. But there’s no way to say “orderby => ‘movie'”. That doesn’t work.
All ideas welcome!
kind regards
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Loop Query: multiple CPT, sort by 1’ is closed to new replies.