I have several posts and some of them have a category called "Highlight" and the others are uncategorized, what I need to do is list all these posts, the first ones always need to be the "Highlight" category regardless of when were posted.
The code I have is simply listing all the posts, I have already tried to use the command oderby
only without success, I may have done wrong too.
My code is as follows:
<?php $posts = get_posts( array('post_type'=>'sala', 'numberposts'=>-1, 'order'=>'ASC') ); ?>
<?php setup_postdata($post);?>
<?php foreach($posts as $post):
/* mostro salas */
<?php endforeach;?>
I do not have much experience with Wordpress.