Hi @wp_dummy,
No, not sure. Those scroll distance are high though. That means the button needs to get 1000 pixels from the btm of the screen. Usually that never happens.
Try scroll_distance=”0″
Can you share a link?
Thread Starter
TC.K
(@wp_dummy)
I now set it to scroll_distance=”0″. But still not effect.
The url is here.
The reason I set the distance so high is that I want the previous loaded way before user scroll down, so that user won’t have to wait. As soon as he scroll down the page, he can view the previous post. (I am showing the whole post content, one post by a time)
Ideally it can load along with current post. It is what I want to do actually.
I don’t see the alm-btn-wrap div on your page.
Did you remove it? If so, it’s required for the scroll distance.
Thread Starter
TC.K
(@wp_dummy)
Where do I put this alm-btn-wrap?
In single.php or repeater template?
It’s part of the markup the shortcode outputs. How are adding the shortcode?
Thread Starter
TC.K
(@wp_dummy)
I do find the alm-btn-wrap in the div. It is to wrap the load more button (Older Posts) right?
Anyway, this is the shortcodes that I used
[ajax_load_more container_type="div" scroll_distance=”0" previous_post="true" previous_post_id="'.get_the_ID().'" post_type="post" posts_per_page="1"]
Yes, exactly. its not a manual process for you. it gets wrapped automatically.
Thread Starter
TC.K
(@wp_dummy)
So, I did nothing wrong then?? If so, why i doesn’t work?
No idea.
If you want me to take a look open a ticket on the website and we can chat privately.
Thread Starter
TC.K
(@wp_dummy)
Nvm, I put aside this first. I got other thing more urgent to do now. But if I have problem again..I will open the ticket on the website then.
Any thanks.
Great Support!