PHP code in OT Frontend textarea?
-
Hi
is it possible to add php code within the wp admin frontpage area for an textarea. I have the following html:
<br /><br /> <img src="https://my-domain.com/dev/wp-content/uploads/2017/01/Impressum.png" alt="Leagal Disclosure" /></div>
and want to change the image according to the selected transposh plugin language. Therefore I need to add:
<?php echo $my_transposh_plugin->target_language?>
So the result looks like this:
<br /><br /> <img src="https://my-domain.com/dev/wp-content/uploads/2017/01/Impressum<?php echo $my_transposh_plugin->target_language?>.png" alt="Leagal Disclosure" /></div>
But it does not work. I guess because the php-code is not executed when I add it in the OT frontpage?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP code in OT Frontend textarea?’ is closed to new replies.