Support » Fixing WordPress » How to directly edit the page files

  • I would like to edit the pages without using WP’s built in page editor. But I can’t find the files anywhere on my server so if someone could point me in the right direction I would appreciate it. I know how to edit my header and sidebar files but as far as actual page content I can’t find it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Pages, if we are talking about the entity you create via Write Page, are kept in the wp_posts table and are not meant to be edited except with what you call the page editor.

    ok but I would really like to add some php to my pages but when I enter it in the page editor all I get is a page that displays the php tags not the actual content that the php is supposed to display, could you possibly tell me how to accomplish this?

    Can put PHP code in pages and expect it to execute without using one of the phpexec type plugins.

    One example:

    ok I installed and activated the plugin ,now instead of the php tags I get this error message on my page:

    “Warning: Invalid argument supplied for foreach() in /home/muledeer/public_html/wp-content/plugins/exec-php/exec-php.php(39) : eval()’d code on line 51”

    any help would be great thanks

    Okay sorry–should have pointed you to this plugin:

    If you need PHP in a widget see Otto42 widget:

    The above is the plug-in I installed but I still get that error when trying to run this link script (which works fine when run on a non wordpress page:

    require ‘’;

    $lines = array ();

    echo ‘<p class=”linkman”>’;

    foreach ($lines as $thisline) #THIS IS WHERE THE PROBLEM IS
    if (!empty($thisline)) {
    if ($settings[‘clean’] != 1) {$url=’home/muledeer/public_html/linkman103/go.php=?url’.$url;}
    echo ‘‘.$title.’ – ‘.$description.'<br>’;

    any help would be appreciated.

    How about

    foreach ($lines as $thisline) {

    didn’t work sorry.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to directly edit the page files’ is closed to new replies.