For example I want to print something by php in one of my entries body (or in extended entry):
CODE
<?php echo 'This is an example.'; ?>
When my weblog publishing setting is statically, the code works and print: "This is an example." But, when weblog publishing set to build dynamically it does not work and in page source the code shown among other html tags and content.
CODE
…
<div class="entry-content">
<div class="entry-body">
<?php echo 'This is an example.'; ?>
</div>
</div>
…
<div class="entry-content">
<div class="entry-body">
<?php echo 'This is an example.'; ?>
</div>
</div>
…
Someone in Smarty forum told me that I try "{php}…{/php}" tag but, its result was like what I write above. I myself tried "{{php}}…{{/php}}" that effected like other one.
Now, does anyone know how can I write php codeblocks into my post that they behave as such as expected?
Thank you.
