/* Template Name: Updated Articles */ get_header(); $args = array( 'post_type' => 'post', 'meta_key' => 'is_updated', // 替换为您使用的自定义字段 'meta_value' => true, // 替换为您的自定义字段值 'posts_per_page' => 30, // 设置每页显示的文章数量 ); $updated_articles = new WP_Query($args); if ($updated_articles->have_posts()) : while ($updated_articles->have_posts()) : $updated_articles->the_post(); // 显示已经更新的文章 the_title(); the_content(); endwhile; wp_reset_postdata(); else : echo 'No updated articles.'; endif; get_footer(); ?>