Infinite Scroll on Posts

Posted in: Newspaper
Post count: 341

Hi, I know it’s possible but how?

On any blog or posts I want to show infinite latest articles at the bottom.

Post count: 6600

Hi,

The best way to do this is to use VC to add your post content and then add a block into your post content which is set to infinite load: http://screencast.com/t/RAFpBqRJqF
Enable VC on post editing panel from here: http://screencast.com/t/fCBxUJiLksw
Another way would be to use the do_shortcode() function and add the code inside post template. You can create the shortcode for the block using page builder then switching to classic mode just get the shortcode and add it into the function then into the template where you want to show up. If you don’t know how to do this we recommend you to hire freelancer to do it for you.
Hope this helps!

Thanks

Post count: 341

Thanks for the quick reply.
I tried using the visual composer but that’s not what I want.

I mean is it possible to show a block of latest posts with ajax after everything on posts page? Even after comments? Just before the footer widgets start.

Post count: 6600

Hi,

Use the do_shortcode() function and add the shortcode of your custom block as you like into post template after the comments template, other than that you could modify the post template and add the code for the loop there and customize it, the theme was not designed that way so this needs custom work and you need to hire a developer to do that for you if you don’t know how because we cannot offer custom work.

Thanks

Post count: 341

Cool, thanks 🙂

Post count: 28

Did it by adding this code to the end of single.php before the php closing tag :-

echo td_page_generator::wrap_start();
echo do_shortcode(‘[vc_row][vc_column width="2/3"][td_block3 sort=”random_posts” limit=”10″ custom_title=”Trending” ajax_pagination=”infinite”][/vc_column][vc_column width="1/3"][/vc_column][/vc_row]‘);
echo td_page_generator::wrap_end();

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.