Empty result on custom page template
-
Hello,
Plugins version: 3.0
JS loaded after jQuery, CSS loaded as well, no errors/warnings in console.I can’t figure out why I’m getting an empty div, here is my setup:
I’m using the shortcode in a custom php template where I used to query custom post type posts with many different custom fields.Now I’m just trying to echo post titles as a test with the following in the repeater:
<div class="col-lg-4"> <div class="blog-post flex-col"> <?php the_title(); ?> </div> </div>
If I understand right the shortcode deals with the query and it needs to be pasted in the loop like this:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php echo do_shortcode(' [ajax_load_more id="5979198204" container_type="div" post_type="books" posts_per_page="6" scroll_distance="350" max_pages="3" transition="none" images_loaded="true"] ') ?> <?php endwhile; endif; ?>
The resulting div ‘alm-listing alm-ajax’ with the attributes I set up with the shortcode is empty. Also the button or loader element is not present in the page source.
There must be something I don’t see right now, could please point me to the right direction?
Thank your for the plugin.
- The topic ‘Empty result on custom page template’ is closed to new replies.