WordPress.org

Ready to get started?Download WordPress

Forums

Delete trackback field and advanced editing from post.php (4 posts)

  1. Rob Poitras
    Member
    Posted 9 years ago #

    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 wp.org 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.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

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

  3. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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 />'), 'http://wordpress.org/docs/reference/post/#trackback') ?>
    <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

  4. Rob Poitras
    Member
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.