I am retrieving some post and to show post on first come first basic. Now I want to show those post on the top which are posted by admin.
the code I am using in php is:
$tit = get_the_title(); $args = array( 'post_type' =>'contribute', 'numberposts' => 100, 'meta_key' => 'portfolio', 'meta_value' => $tit , ); $slides = get_posts($args); ?> <ul id="myList"> <?php foreach($slides as $post) : setup_postdata($post); ?> <li>the post will go here</li> <?php endforeach; wp_reset_postdata(); ?>
Read more here: Posts by admin on the top from all the post?