Skip Navigation

[Resolved] Infinite scroll skips 1 post when loading more

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 7 replies, has 2 voices.

Last updated by Hans Oorschot 6 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1185813

I am trying to: build a view in which infinite scroll is used. The first 9 items display correctly. when the next items load, post 10 is not displayed. The newly loaded posts start with post 11.

When I change the view to display 8 items, after scrolling, post 9 is not displayed, but the next posts start with post 10.

Link to a page where the issue can be seen: hidden link

I expected to see: When scrolling to the bottom, I expect post 10 - 18 to be displayed.

Instead, I got: post 10 is not displayed.

#1185897

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Hans

I just tested this on my own local site and I didn't see the same, no posts were missing in a View using Infinite Scroll to update results.

Could I get access to your site to run a few simple checks?

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make anything other than trivial changes directly related to this View.

#1186659

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2019-01-18 at 10.30.48.png

When I look at the blog page on the front end and compare it to the list of posts in the back end, I can see that there seem to be additional posts injected (see screenshot, that post is not in the list of posts in the back end).

I can't see this happening in the View.

Can you detail how you are doing this? It is surely the reason you seem to be missing a post during pagination.

#1186665

The view that is added to the blog page, sorts posts by date. This post seems to be an old post that has it's date changed. So it should be visible on the blog overview, because the post date has been changed to november 30. 2018.

So although the november 30. post might be created in 2016, the published date indicates that it should be included in the first blog overview, on that spot.

#1186678

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Hans

OK, thanks for clarifying, I thought you might be injecting some ad-type posts.

I created a simple test View to list the posts and added it side-by-side to a test page with the infinite scroll View to make it easier to compare, where I can see it happening.

As I cannot reproduce the problem on my own site, I'd like to run the same test with a minimal install, i.e. with the non-Toolset plugins disabled, and switching to a default theme.

This is a live site, do you have a staging site for testing?

#1186694

I have: hidden link

Your login credentials are identical. Please note the login url which is the same as on the live site.

#1186744

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Thanks

I fairly quickly identified that the issue arises with the Post Types Order plugin. Disable the plugin, the problem disappears.

I notice that the plugin has settings for where it is effective.

It may be that the un-checking the setting "Apply the sort on Next / Previous site-wide navigation" would fix the problem, for example.

I'll leave you to try the settings details to determine which you need to change to avoid this.

#1186754

My issue is resolved now. Thank you!