Remove Jetpack infinite-wrap
What if you remove the existing infinite-scroll before re-add it? remove_theme_support( ‘infinite-scroll’ ); add_theme_support( ‘infinite-scroll’, array( ‘wrapper’ => false, ) );
What if you remove the existing infinite-scroll before re-add it? remove_theme_support( ‘infinite-scroll’ ); add_theme_support( ‘infinite-scroll’, array( ‘wrapper’ => false, ) );
Your code is a bit complex, so I can’t post a full-working code, but a proof of concept, then adapt to your code is up to you. So, Ajax in WordPress should be used via Ajax API, instead to send a request to same url, that of course print header, and other stuff, simply send … Read more
Add <!–nextpage–> in your post editor to split your post.
add this before your other add_action call: add_action(‘wp_ajax_nopriv_zephyr_infinite_scroll’, ‘zephyr_get_nextpage’); the wp_ajax_ filter runs only when you are logged in. wp_ajax_nopriv_ runs only when logged out. This is so you can separate your requests, and maybe treat them differently, if that’s the case. Check wp_ajax_(action)
Redirect to another page using contact form 7? [closed]
Infinite Scroll on a loop?
How to prepare the back button action to deal with infinite scroll?
infinite-scroll for 2 fixed height containers
Init plugin again after ajax call finish
Infinite Scroll and DFP