我正在使用WP Job Manager插件,并且能够指出http://www.mywebsite.com/job-listings/ 已使用。它设置在一个名为归档的文件中。我的主题是php。
<div id="primary" class="content-area col-lg-<?php echo intval ( $colid ); ?> col-md-<?php echo intval ( $colid ); ?> col-sm-12 <?php echo esc_attr( $layout ); ?>" data-layout="<?php echo esc_attr( $layout ); ?>">
<main id="main" class="site-main">
<div class="articlesListing blog-grid">
<?php
if ( have_posts() ) :
if( !empty( $layout ) && $layout == \'masonry2-rsidebar\'){
echo \'<div class="construction-masonry">\';
}
/* Start the Loop */
while ( have_posts() ) : the_post();
/* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
// Post Display Layout
if( !empty( $layout ) && $layout == \'masonry2-rsidebar\' ) {
get_template_part( \'template-parts/content\', \'masonry\' );
} else {
get_template_part( \'template-parts/content\', get_post_format() );
}
endwhile;
if ( !empty( $layout ) && $layout == \'masonry2-rsidebar\') {
echo \'</div>\';
}
the_posts_pagination(
array(
\'prev_text\' => esc_html__( \'Prev\', \'construction-light\' ),
\'next_text\' => esc_html__( \'Next\', \'construction-light\' ),
)
);
else :
get_template_part( \'template-parts/content\', \'none\' );
endif;
?>
</div><!-- Articles Listings -->
</main><!-- #main -->
</div><!-- #primary -->
然而,当我进入下一页时,例如。
http://www.mywebsite.com/job-listings/page/2, 它正在显示我的404页面。我的搜索。然而,php在显示时运行良好
http://www.mywebsite.com/page/2/?s=a 但对于我的档案页面,我不能这么说。我的分页有问题吗?使用建筑灯(主主题)、代理铃(儿童主题)。