Ready to get started?Download WordPress


posting php (4 posts)

  1. Vizionn
    Posted 8 years ago #

    Is there anyway I can enable it?

    I want to be able to post:
    $tbn = $HTTP_GET_VARS['tbn'];
    echo "<img src=\"photography/$tbn\" alt=\"Vizionn twiztedstyle twizted style\" />";
    as a page.

    Would I need to create a plugin?

  2. WilRushmer
    Posted 8 years ago #

    Off the top of my head, create a static page called photography.php(for example) and put in your theme directory, include your code above of course. then go into write &raquo writep age in the admin section and create a new one called photography. In the dropdown box for "Add a new custom field to this post:" select _wp_page_template as the key and its value as photography.php. That should do the trick.

    You probably wont be able to call images from the same directory, maybe call them from /wp-content/ instead.

  3. Vizionn
    Posted 8 years ago #

    the php plugins didnt work but i used the theme method and it works a treat

    thanks both of you

Topic Closed

This topic has been closed to new replies.

About this Topic