Put php variable in shortcode

Question

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."]"]' ) ?>    
0
, Simon 4 years 2020-03-26T08:50:59-05:00 0 Answers 124 views 0

Leave an answer

Browse
Browse