There may come a time wherein you will need to have php code run within your posts and pages in your wordpress blog. Luckily there are some plugins available that will let php code get executed within the page or post. Problem is, not all of them worked for me. I tried ExecPHP and runPHP but both of them did not work.

PHP-Exec did the job for me. You can get it here. Remember, take not of the plugin name. It’s PHP first, then Exec next. The plugin Exec-PHP is different. To use PHP-Exec, you would need to add the following tags <phpcode> and </phpcode> between your <? and ?> php code tags.

To use it, say, listing your categories in a page, do the following.

Related Posts Plugin for WordPress, Blogger...