Posting php code to a wordpress blogged entry
-
Hiya ppl.
I searched for an answer to this, and didn’t find one – so I can only apologise if this is a repost.
I am running a poll on my site, and want to include random polls into random blog posts.. however the code to show the poll is a general php style code
i.e.
<?php
include_once “/home/cryptic/public_html/polls/booth.php”;
echo $php_poll->poll_process(6);
?>If I post this into a standard blog entry – it shows up exactly as is.
As opposed to showing the poll.I am pretty new to wordpress so I was wondering if there was a step you could take to allow code within posts… kind of like the way a phpbb will give you an option to allow html etc.
Or if not, is there anyway to get the poll to show in a post by other means?Cheers!
- The topic ‘Posting php code to a wordpress blogged entry’ is closed to new replies.