php inside a post?
Hi. I’d like to use a php ‘include’ inside the body of my post. So for example, I’d like to say:
<?php include(‘file.php’) ?>
inside my post. But when I try doing this, WP immediately changes the <?php to <? php, invalidating it as php code…and it the only thing that shows up in the post body is this:
<? php include(‘file.php’) ?>
Is there a way to accomplish what I want (i.e. use php statements within a post body)?
- The topic ‘php inside a post?’ is closed to new replies.