PHP shortcode option not working inside loop
Hi,
I have the following code in my custom post template:
PHP Code:
if(in_the_loop()) {
error_log('we are in loop');
} else {
error_log('we are not in loop');
}
echo do_shortcode( '[starstruck_shc]' );
The only HTML appearing in the page is the following empty div:
PHP Code:
<div class="starstruck-ptype" style=""></div>
It works fine if the only option checked is appropriate post type, but I don't want it at the end of the content. I tried various combinations of settings (custom post checked with 'use shortcode' checked and unchcked, with various taxonomy options checked and unchecked). What am I doing wrong?