如何修复在 wordpress 中找不到的分页?

How to fix pagination not found in wordpress?

我是wordpress的新手。我在单击下一个 post 时遇到分页问题,​​它显示 "not found"。我安装了 wp pagenavi 插件,并将代码放在我的博客 post 中。它显示分页,但我对 link 到下一个 post 有疑问。例如,当我单击下一个 post 时显示

Something went Wrong!
404
-->

您可以在以下位置查看:http://westecmedia.com/events/

这是我在事件中的代码-page.php:

<div id="content-events">
    <div id="head-event"><h3>EVENTS</h3></div>
    <div id="main-event">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

        <?php the_content(); ?>

    <?php endwhile; else: endif; ?>

    <?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div id="part-event">
    <div id="entry-thumbnail">
            <?php the_post_thumbnail(); ?>

    </div>
    <div id="event-dess">
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
        <p>
            <?php 
            $content = get_the_content();
            $content = strip_tags($content);
            echo substr($content, 0, 300);
            ?>
        </p>
        <div id="read-more"><a href="<?php the_permalink(); ?>">Read More</a></div>
    </div>

</div>
        <div id="line-bottom"></div>
    <?php endwhile; else: endif; ?>
        <?php wp_pagenavi(); ?>
    </div>
</div>

<?php get_footer(); ?>

请帮帮我?

也许你错过了这里的对象。您可以试试下面的代码:

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  $args = array(
      'posts_per_page' => get_option('posts_per_page'),
      'paged' => $paged,
      'category_name'=>get_the_title(),
      'post_status'=> array('publish', 'future')
 ); 
 query_posts($args);

改为:

 <?php query_posts('category_name='.get_the_title().'&post_status=publish,future');?>