php $data = array post_type = post post_status = publish orderby = date order = ASC posts_per_page = 10 ; query_posts$data; if have_posts while have_posts the_post;i want query post by
'post',
'post_status' => 'publish',
'orderby' => 'date',
'order' => 'ASC',
'posts_per_page' => '10',
'meta_query' => array(
array(
'key' => 'montakhab',
'value' => '1',
'compare' => '=',
),
),
);
query_posts($data);
if( have_posts() ) {
while( have_posts() ): the_post();
// Your code for displaying the posts goes here
endwhile;
}
?>
原文地址: https://www.cveoy.top/t/topic/i37G 著作权归作者所有。请勿转载和采集!