WordPress.org

Support

Support » Plugins and Hacks » adding regular php variables in a post

adding regular php variables in a post

  • Hey,
    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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘adding regular php variables in a post’ is closed to new replies.
Skip to toolbar