• Resolved maarteno

    (@maarteno)


    Hi,

    I have an odd problem with a custom post type archive page returning the wrong posts when amended with a custom taxonomy.

    The below links are supposed to show you all publications and publications for the year 1959 respectively. As you see the show the same list, however, the second one does omit paging (as it recognizes that there are less then 10 publications for 1959

    http://hd-ca.org/publications
    http://hd-ca.org/publications?publication_year=1959

    the same works functionality works fine on a previous development version (and it worked before on the active version):

    http://hdca.mmott.com/publications
    http://hdca.mmott.com/publications?publication_year=2012

    Perhaps my main question is how do I track down this issue? I’m afraid this might be a deeper problem then my theme templates can handle, but it would be good to get some pointers on how i can debug this so i can see where this goes wrong.

    Any help appreciated,

    Thanks,
    Maarten

Viewing 1 replies (of 1 total)
  • Thread Starter maarteno

    (@maarteno)

    I finally found the problem.

    When upgrading from3.6 to 3.7.1 or 3.8 the template hierarchy changed. instead of a taxonomy template it started redirecting to an archive template for the same url, causing mismatch between what is visible as posts and the pagination, since the respective archive page had a custom loop on it.

    In case anyone has the same problem

Viewing 1 replies (of 1 total)

The topic ‘archive page returns wrong posts’ is closed to new replies.