Site logo

Archived topic

The infinite scroll feature doesn't work on /Search slug

5 replies · Started by Sunil on September 1, 2021

Viewing posts 1–6 of 6

Dear Team

While the infinite scroll works like a charm on "?s=" search queries, the wordpress websites also show search result when someone uses the url mywebsite.com/search/search-query

Now, these archives don't use infinite scroll or have button to load more when someone uses the paginated version - let's say mywebsite.com/search/search-query/page/26/amp/ - even when we select the option of infinite scroll in the settings. As a result, many of such pages are appearing on the search engine console as "Excluded by ‘noindex’ tag".
While not a major problem, but can you help me with a solution?

Hi there,

the URL you provided is an /amp page. AMP doesn't support Javascript which is required for the Infinite scroll, hence you have the static Paging Navigation in its place. If i remove the /amp from the URL then the load more is displayed.

Hello David

Yes, you're right. I'm planning to remove AMP anyway.
But did you notice that the non-amp page also showed the result even when the paginated results have been turned off and I've selected infinite scroll?
Isn't it a problem of duplicate page?

If it shouldn't be a problem, then we can mark this as resolved.

Might be my lack of coffee refills but this i am unsure what you mean:

But did you notice that the non-amp page also showed the result even when the paginated results have been turned off and I’ve selected infinite scroll?

I'm sorry if I didn't make sense. But the paginated pages like mywebsite.com/search/search-query/page/2 should not exist when we have infinite scrolling turned on right?

Aah ok ( had my coffee now :) ) - no they still exist. The Pagination doesn't go away ( its just hidden ). The wp_query that displays the search results is the same for any archive, based on the Number of Posts you set to display in your Dashboard > Settings > Display Rules. All that Infinite scroll does, is when it reaches the hidden pagination, is to get the next page of posts and display them.

Theres not a way around that - without telling the search results to display 'infinite' posts, and then you would need a different technology such as a lazy loader to display them, which wouldn't be indexed by google. Whereas to the best of my knowledge paginated archives do - at least if those pages have been visited.

This archived topic is closed to new replies.