I am using two custom post_types where i display both of them in the search page. There i need to sort the posts according to their posttype.
print all posts under custom_post_type1;
print all posts under custom_post_type2;
I can see that there is query_post , i am not sure about the arguments, specifically i need the post types 1 to be at the first and the other after these posts.
- The topic ‘How to sort the posts using their post_type’ is closed to new replies.