Forums › Forums › Search & Filter Pro › Duplicated item in pagination
- This topic has 7 replies, 2 voices, and was last updated 9 years, 10 months ago by
Anonymous.
-
Anonymous(Private) July 6, 2016 at 12:22 am #50295
We have a section of a website that lists out items from a custom post type, has 12 items/page, and displays pagination using WP-PageNavi: http://dev.bopdesign.com/perrknight/resources/downloads/
The second item, “Bureau Monitoring Brochure,” displays on every page in the pagination, though the post is not duplicated in the back-end.
Do you know why this could be happening?
Thanks!
Anonymous(Private) July 6, 2016 at 5:39 pm #50366Looking at this a little more carefully, it seems that all of the posts are being duplicated except for one. It’s displaying unique posts on page one. Page two has one new post and then displays the rest of the posts in the reverse order of the first page.
Here’s a breakdown of what it seems to be doing:
Page One: posts 1-12
Page Two: post 13, then post 1, then posts 12-3
Page Three: posts 2 and 1The interesting thing is, when we change the number of posts per page so it displays all of the posts at once, the repetition goes away.
Anonymous(Private) July 8, 2016 at 9:03 pm #50613Hi Trevor,
We were able to fix the problem by doing the following:
a. Switching the CPT to “hierarchical”
b. Switching the sorting to “menu order”I’m not sure what would cause the bug we had previously, but this work-around seems to be working just fine for now.
Thanks!
-
AuthorPosts