WordPress.org

Ready to get started?Download WordPress

Forums

Edit existing post by author. (1 post)

  1. cip6791
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic