Support » Fixing WordPress » Delete trackback field and advanced editing from post.php

  • Im changing my blog into a dumbed down version for the users on my site to post stuff.
    Im trying to figure out how to take out the “trackback a URI” field and the “advanced editing” button from the post.php template.

    Ive looked all around the codex and used google to search the whole site but no luck yet.
    I tried to just delete this stuff from the post.php template but that only gives me errors.

    $trackback = $_POST[‘trackback_url’];
    // Format trackbacks
    $trackback = preg_replace(‘|\s+|’, ‘\n’, $trackback);

    any help would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mark (podz)


    Support Maven

    View Source on the page, find the div that contains that area and then use CSS to stop it showing up.

    Mark (podz)


    Support Maven

    Ignore that – it’s not in a div on it’s own.

    <p><label for="trackback"> <?php printf(__('<a href="%s" title="Help on trackbacks"><strong>TrackBack</strong> a <abbr title="Universal Resource Identifier">URI</abbr></a>:</label> (Separate multiple <abbr title="Universal Resource Identifier">URI</abbr>s with spaces.)<br />'), '') ?>
    <input type="text" name="trackback_url" style="width: 360px" id="trackback" tabindex="7" /></p>

    I just deleted that from edit-form.php and all still works

    ahh great! thanks podz

    For future refrence if someone wants to take out buttons or other fields/functions on the post.php (write post) or page-new.php (write page) it looks like those files look to the edit-form.php file in the /wp-admin folder.

    What I did was just add
    <!– (php code is in here)

    if I wanted to take something out. That way I could go step by step and if something I did screwed something up, I wouldnt have to put the code back in, I would just take out the commenting marks.
    It would also be helpful (if trying to trouble shoot in the future) that if you wrote comments about what was actually taken out. If there isnt any code there, then it could be confusing to try and figure out what was there before.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delete trackback field and advanced editing from post.php’ is closed to new replies.