How to use do_shortcode in templates

I’ve been having some trouble when applying a filter to a do_shortcode.
I’m using Lazy Load XT and Ajax Load More and this is the code I have in my template that is not able to apply the filter to the_content and lazy load the images in the posts.

<?php echo get_lazyloadxt_html(do_shortcode('[ajax_load_more]')); ?>

Is there any chance anyone can point me in the right direction? I was only able to find one post here suggesting that the wrapper might not be too happy with the shortcodes but the fix proposed doesn’t work for me. I’m using Roots 7.0.3 for this theme.

The actual do_shortcode() looks fine. However, I don’t have any experience using either of those plugins. I can assure you that the theme wrapper will not affect using shortcodes in any way. Are you sure that these two plugins are compatible with each other in this particular way?

I got this working, I just needed to apply the filter to the actual content in the repeater used by the Ajax Load More plugin instead of applying the filter to the shortcode. Thank you for the prompt support, you guys rock!