I'm trying to use an image for my title using the jQuery Collapse-O-Matic plugin, however I am using the do_shortcode echo and am stumbling a bit on how to add an echo within an echo. I've tried a few options including the Heredoc method but I am not sure how to implement with my particular code.
I've added my code below, can anyone point me in the right direction? All and any help is appreciated, thanks!
<?php echo do_shortcode('[expand title="<img src='<?php echo get_template_directory_uri(); ?>/img/schedule.png' />" trigpos="below"]this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..this is content..[/expand]'); ?>
echoperforms output immediately. you probably dodo_shortcode('...' . get_template_director() . '...')instead. No echo at all. just call the function and concatenate the results.