Viewing 8 replies - 1 through 8 (of 8 total)
  • Does the default WP pagination like prev/next works?

    Thread Starter blackc2004

    (@blackc2004)

    I just tried those and they do not work either…

    Any ideas why those would not work?

    Thanks.

    What about the Date/Time Permalink structure?

    Thread Starter blackc2004

    (@blackc2004)

    Ok. I’ve been playing around with this some more and here’s what I’ve found.

    If you go to /category/news the pagination works fine. But the category/blog is a combination of three different categories. So in my archive.php I have:

    if (is_category('Blog')) {	query_posts('cat=1,3,4'); }
    while(have_posts()) : the_post(); ?>

    Is there a better way I should be doing this?

    Because that query_posts() did not take into consideration the “paged” element and hence it always thought it is page 1.

    Thread Starter blackc2004

    (@blackc2004)

    So what would be the way to resolve this? How do you get the pages from the URL?

    Try query_posts('cat=1,3,4&paged='.intval(get_query_var('paged')));

    Thread Starter blackc2004

    (@blackc2004)

    Thanks. That doesn’t seem to work because WP is throwing a 404 before it gets to my updated query_posts… I know I could do a plugin to dix this, but I think that I’ll just remove this code for now.

    Thanks for all the help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: WP-PageNavi] 404 errors on all paged events’ is closed to new replies.