Hi chakladar,
So you want to embed ajax load more inside a custom post type?
You dont put the shortcode in your templates, you place the shortcode on the custom post type page/template.
Does that make sense?
Hi,
I think you have misunderstood it. I have my own shortcode, that generate the attachments image, I have put that shortcode in the repeating template. Not your ajax-load-more shortcode. I have put alm shortcode in the custom post type.
Can you post your repeater template?
<php echo do_shortcode('[FILES]'); ?>
[FILES] is my shortcode, which gives out the attachments in that post. I have used this in repeater template.
Yea looks like there is an issue with nesting shortcodes in repeaters.
I’ll try to solve this this week.
Actually, no is working as expected.
Your issue is you are missing the ? in your PHP statement.
Should be: <?php echo do_shortcode('[FILES]'); ?>
Sorry, it is a typo mistake here only. I have use ? in the repeater template. It is not working.
I tested on my end and I was able to output my button shortcode.
<li><?php echo do_shortcode('[button]BUTTON[/button]'); ?></li>
Can you post your full repeater?
This is my full template.
<?php echo do_shortcode(‘[FILES]’); ?>
Try to add
<div><?php echo do_shortcode('[FILES]'); ?></div>
Ok then im not sure. Sorry.