content block with php variables included in html
-
hi i have content block with shortcode [contentblock id=2];
and the content in this global block is
$themepath = “https://localhost/shriram/wp-content/themes/twentyeleven-child/images”;
<div class=”bottomSlider”><img src=”$themepath/shriram-home-finel_39.jpg” /></div>i am printing my content block in template file like this
<?php echo do_shortcode(‘[contentblock id=”2″]’);?>
and the output is so strange below is the output
$themepath = “https://localhost/shriram/wp-content/themes/twentyeleven-child/images”;
<div class=”bottomSlider”><img src=”$themepath/shriram-home-finel_39.jpg” /></div>how can i use php variables in between html content and wht is the type of content i should select while creating content block?please help me on this…
https://www.ads-software.com/extend/plugins/global-content-blocks/
- The topic ‘content block with php variables included in html’ is closed to new replies.