adding regular php variables in a post
im trying to add a simple php variable in a wordpress page i have created, however it doesn’t seem to work.
I have installed the plugin “runPHP” because i was told thats what i need to use. however i can’t seem to get this to work.
in my page i added:
<?php $bgimage = "test"; ?>
and on pages.php i want to echo this after the post so i have:
<?php echo $bgimage; ?>
Any help would be great, thanks
- The topic ‘adding regular php variables in a post’ is closed to new replies.