I am trying to:
I have used Types with the same theme for years. The infinite scroll feature used to work fine until about 18 months ago and I have never been able to get it to work again. It appears that the theme calls the custom posts in the archive page, but they don't load on the front end. You can see the ajax call happening X number of times (for example 3 times if there are 3 pages in the archive pagination)...then it says 'No more posts". I had the theme tech support check and they said it's an issue with the CPT plugin, not their theme. Infinite scrolling works on pages with regular posts...just not custom posts.
Link to a page where the issue can be seen: Any CPT archive on my site, for example:
hidden link
I currently have infinite scroll turned off as visitors are unable to see beyond the first page of content when it's on
Is this a known issue with Types in the last couple of years?
Hello,
The "infinite scroll" feature should be able to work in custom post types, please check these in your website:
1) check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2022, and test again
3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
Hello Luo thanks for your response...I turned on debugging but it outputs to the front end publicly, which I can't have while visitors are on the site. There was only one php error showing anyway, and it was unrelated to this issue. When I replaced the php page from my child theme referenced in the php debug output with the one from the theme, the error disappeared but the infinite load still did not work.
- I have tried numerous times to see if it's an incompatibility with another plugin...it's not. I can turn off all other plugins and the problem with infinite scroll continues the same. That includes the cloudflare plugin, the cache plugin, etc. I used to use another caching plugin before and still had the same problem. Likewise the plugin for handling image sizes and retina images also doesn't have any conflict.
- I checked the chrome JS debug panel and there are no errors on these archive pages. I also checked the network tab as well and it shows that subsequent pages are being loaded by the script as if they were loading normally...for example, when infinite scroll is on it shows that the next pages in the pagination series are called and loaded. But they don't actually appear on the front end.
- The theme's tech support will not assist with this as it is related to a custom post archive. They say if infinite scroll is working on the regular post archive then it's not their problem...and it is working on the regular post archive, but stopped working on all CPT archives. I am using the latest version of WP, latest theme, latest Types plugin. I don't use Views.
I am at a loss as to what could be causing this...I thought perhaps cloudflare script minification, but the infinite scroll works on the regular post archives so that's not it...thanks
Please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/
Hello Luo,
My site is too large to send you a copy as it contains thousands of images, and I prefer not to send a copy of my entire site anyway. I can add a login for you if that might work...can you analyze it with an admin account?
You can follow duplicator document to export the database only package:
hidden link
section "3. Database Only"
put the package files in your own google drive disk, share the link only, also point out the problem page URL.
I installed the Duplicator plugin and was unable to make an archive...it times out and gives a 404 error no matter the server settings. It only prepares about 30% of the database before it times out. Can you work with a copy of the database from phpMyAdmin?
OK, I can try with the database dump file exported from phpMyAdmin, private message box enabled again, please put the package files in your own google drive disk, share the link only, also point out the problem page URL.
Thanks for the details, I can download the files, will update here if find anything
How do you setup the infinite scroll feature?
I have tried your duplicator package in my localhost:
1) You did not use Toolset Blocks/Views plugin
And there isn't Toolset Blocks/Views plugin in the Debug information you provided above.
2) If it needs other plugins/theme, please provide downloadable URL for the third party plugins/theme, and describe detail steps to reproduce the same problem