HI
I have problem with this code
<?php $var = echo $this->Entity_RenderField($entity, $this->Entity_Field($entity, 'field_meni')); echo do_shortcode($var);?>
error:
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /home/templates/test.html.php on line 86
when I do this:
<?php $var = $this->Entity_RenderField($entity, $this->Entity_Field($entity, 'field_meni')); echo do_shortcode($var);?>
there is no error but also no output
and like this:
<?php $var = $this->Entity_RenderField($entity, $this->Entity_Field($entity, 'field_meni')); echo do_shortcode('$var');?>
I only get $var as output
what am I doing wrong?
this is original code that works:
<?php echo do_shortcode('[WP_Restaurant_Menu id="1"]');?>
I am trying to display WP shortcode inside a shortcode
Thanks