Support » Fixing WordPress » Custom Taxonomy and Custom Post Type Pagination giving 404 not found

  • Hi everyone,

    I have been trying all the various solutions I have found across the web for this issue, but I still can’t get it to work – so was hoping someone could shed some light on it for me.

    I’m using a custom post type called “review” and a custom taxonomy called “size” using the twentyten theme. I can display the first page of results for a certain size of review absolutely fine, but clicking on the next page link to go to page 2 of the results gives the “Not Found” message.

    This is the code I’m using to get the relevant posts:

    <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) );
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts(array(
    ‘post_type’=>review,
    ‘gdsr_sort’=>review,
    ‘gdsr_order’=>DESC,
    ‘size’=>$term->slug,
    ‘posts_per_page’=>5,
    ‘paged’=>$paged
    )); ?>

    Any help would be very much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Taxonomy and Custom Post Type Pagination giving 404 not found’ is closed to new replies.