您可以创建一个页面模板,在其中显示带有自定义标记的所有帖子。
<?php
/**
* Template Name: My Custom Blog
*
*/
// The Query
$args = array(\'posts_per_page\'=>-1);
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
echo \'<ul>\';
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo \'<li>\' . get_the_title() . \'</li>\';
}
echo \'</ul>\';
} else {
// no posts found
}
/* Restore original Post Data */
wp_reset_postdata();
?>
将此页面命名为:“page-custom\\u blog.php”,然后发布一个分配此模板的新页面。

希望有帮助。
https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/