改用WP\\u Query,您可以使用meta\\u键/meta\\u值参数:
<?php
$paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;
$args = array(
\'cat\' => 10,
\'paged\' => $paged,
\'posts_per_page\' => 12,
\'post_status\' => \'any\',
\'order\' => \'ASC\',
\'meta_key\' => \'archived\',
\'meta_value\' => \'true\'
);
$posts = new WP_Query($args);
?>
<?php while($posts->have_posts()): $posts->the_post(); ?>
<?php the_title(); ?>
<?php endwhile; ?>