Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    55

    Unanswered: Running PHP inside Wordpress Page

    I need to run PHP inside a Word Press Page/Post WITHOUT use of an additional plugin or editing the WP code. Is it possible?

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    This is probably your best place to start
    George
    Home | Blog

  3. #3
    Join Date
    Jun 2010
    Location
    New Zealand
    Posts
    15
    Stepping Into Templates - WordPress Codex

    If you're relatively new to WP then you have a lot to learn. The best thing to do is to experiment - edit a couple of files and see which pages they affect. It gets a bit tedious if you're FTPing files to and from the server so you can use WP's theme editor (provided directory permissions are set correctly on the server).

  4. #4
    Join Date
    Jun 2008
    Location
    pakistan
    Posts
    109
    the best way to check your wordpress coding install a local server like wamp,,xampp etc
    then your coding will be check easily

  5. #5
    Join Date
    Jun 2010
    Posts
    1
    As I remember from php tutorial you, maybe need try ABSPATH
    PHP Code:
    <?php
    echo "ABSPATH ".ABSPATH."<br />";
    echo 
    "WP_CONTENT_DIR ".WP_CONTENT_DIR."<br />";
    echo 
    "WP_CONTENT_URL ".WP_CONTENT_URL."<br />";
    echo 
    "WPINC ".WPINC."<br />";
    echo 
    "WP_PLUGIN_DIR ".WP_PLUGIN_DIR."<br />";
    echo 
    "WP_PLUGIN_URL ".WP_PLUGIN_URL."<br />";
    echo 
    "PLUGINDIR ".PLUGINDIR."<br />";
    echo 
    "WPMU_PLUGIN_DIR ".WPMU_PLUGIN_DIR."<br />";
    echo 
    "WPMU_PLUGIN_URL ".WPMU_PLUGIN_URL."<br />";
    echo 
    "MUPLUGINDIR ".MUPLUGINDIR."<br />";
    echo 
    "Parent theme ".TEMPLATEPATH."<br />";
    echo 
    "Child theme ".STYLESHEETPATH."<br />";

    echo 
    "Parent template_directory".get_bloginfo('template_directory')."<br />";
    echo 
    "Parent template_url".get_bloginfo('template_url')."<br />";
    cho "Child stylesheet_directory".get_bloginfo('stylesheet_directory')."<br />";
    echo 
    "Child stylesheet_url".get_bloginfo('stylesheet_url')."<br />"

    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •