1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

$args = array(
    'meta_key'=>'readmoretext',
    'meta_value'=>'Go check this out',
    'post_status'=>'publish',
    'post_type'=>'post',
    'orderby'=>'date',
    'order'=>'DESC'
);
query_posts($args):

if(have_posts()) : while (have_posts()) : the_post();
    
    //Do Whatever
    
endwhile; else:
    
    //Do Whatever
    
endif;

wp_reset_query();

?>