WordPress.org

Support

Support » How-To and Troubleshooting » Edit existing post by author.

Edit existing post by author.

  • Hello,

    I would like to allow the author of a post to edit it after he/she posts. I currently have this:

    <?php get_currentuserinfo();
    
    global $user_ID;
    $author_id=$post->post_author;
    ?>
    
    <?php if ($user_ID == $author_id)
    
    {
        include 'post-upd.php';
    }
    else
    {
        echo "You are not the post author.";
    }
    
    ?>

    Now it gets a little complicated. I would like to start with some custom fields. Can anybody help me include a new custom field into a post if I am the author?

    Thank you

  • The topic ‘Edit existing post by author.’ is closed to new replies.
Skip to toolbar