I’ve been trying to automatically post all the slideshow in my post. I usually add
[slideshow post_id="POST ID OF MY POST"]to each one of my post to do the job but I think there’ a better way by incorporating it inside the theme.
I tried to add something like this in my single.php:
<?php $postid = get_the_ID(); echo do_shortcode('[slideshow post_id='.$postid.']'); ?>
- The topic ‘do_shortcode HELP’ is closed to new replies.