wordpress 3.8.1 category page 2 error 404 not found / custom post type

前端 未结 3 1468
深忆病人
深忆病人 2021-01-14 12:06

first the problem, then the tries.

Problem

The problem is that i get a 404 NOT FOUND error if i visit another page than the first category page. On the cat

3条回答
  •  我在风中等你
    2021-01-14 12:52

    Try this, it should work.had similar problem

      '%_%',
                'format' => '?' . $query_string . '&paged=%#%',
                'current' => max(1, get_query_var('paged')),
                'total' => $wp_query->max_num_pages,
                'type' => 'array'
            );
    
            $pagination = paginate_links($pagination_args);
    
    $big = 999999999; // need an unlikely integer
    
    
    $links .= paginate_links(array(
      'base' => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
      'format' => '?' . $query_string . '&paged=%#%&keyword='.$keyword,
      'current' =>max(1, get_query_var('paged')),
      'total' => $wp_query->max_num_pages
    ));
    echo $links;
            ?>
    

提交回复
热议问题