i called wordpress function between the shorcodes as a input.
<?php echo do_shortcode('[shortcode]'.$var.'[/shortcode]');?>
how to add div class for the $var here?
I tried few combination but it works for the full shortcode. i just want to use the div only for $var.
I tried like,
<?php echo '<div class="own">', do_shortcode( '[shortcode]'.$var.'[/shortcode]'), '</div>' ; ?>
How to add div class only for $var here?