I want to put the variable in the shortcode, but it is not working. What i have done wrong.
<?php $calendar = getCalendarTag();?> <?php echo do_shortcode( '[ai1ec tag_name=".$calendar."]"]' ) ?>
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community