Site logo

Archived topic

Infinite Scroll on Single Post + Load more button on Blog Post Archive Category

6 replies · Started by Tri Ryuzaki on December 20, 2021

Viewing posts 1–7 of 7

Hi, please instruct me to archive something like this site in which there is a "LOAD MORE" post button on Blog Page and Post Category Archive + Infinite scroll for Single individual post. Thanks

Blog: https://gazillions.com/
Category Archive: https://gazillions.com/entertainment
Infinite Scroll Single Post: https://gazillions.com/entertainment/jeremy-renner-and-hailee-steinfeld-working-together-on-hawkeye-set/
(I notice that the post url automatically change accordingly when I scroll down which is amazing)

Hello, I found this tutorial and follow the steps but it does not work even though the demo result showed on the tutorial is exactly what I want to achieve, could you or someone have a look:

-Tutorial: https://blog.centil.co/2016/04/30/how-to-add-infinite-scroll-on-single-posts-in-wordpress/
-Demo result (inside the tutorial): http://demo.centil.co/infinite-scroll/2016/04/30/this-is-article-10/
-My site: https://demo.fiverrguy.com/article-10/

Hi there,

this kinda thing is custom development which falls outside of our scope.
The one thing i can see, the code your adding requires jQuery which GP doesn't load ( unless you enable sticky navigation ). Unless another plugin loads jQuery you will need to manually enqueue it:

add_action( 'wp_enqueue_scripts', 'tu_load_jquery' );
function tu_load_jquery() {
    wp_enqueue_script( 'jquery' );
}

Hi David, I have added your code using Code Snippet plugin as well as enabling Sticky Navigation but no luck. Could you check please.

No, I won't. I don't have time for that Ying.
Thanks David, I have figured it out, cheer

This archived topic is closed to new replies.