• Resolved bradkovach

    (@bradkovach)


    I’ve searched hard, so I hope this hasn’t already been covered.

    I am using WordPress for a collaborative CMS for my church. I have a very faint message at the bottom of every page created that states who owns the post. Is there any way to have the owner automatically change to the most recent editor when they change something? That way, the editor would be contactable by the people who view the page?

    Thanks,
    Brad Kovach

Viewing 1 replies (of 1 total)
  • Thread Starter bradkovach

    (@bradkovach)

    I figured out the answer.

    In wp-admin/edit-page-form.php, I modified the code to this (starting about line 88):

    <?php if ( $authors = get_editable_authors( $current_user->id ) ) : // TODO: ROLE SYSTEM ?>
    <fieldset id="authordiv" class="dbx-box">
    <h3 class="dbx-handle"><?php _e('Post author'); ?>:</h3>
    <div class="dbx-content">
    <select name="post_author_override" id="post_author_override">
    <option value="<?PHP echo $current_user->id; ?>" selected="selected"><?PHP echo $current_user->display_name; ?></option>
    </select>
    </div>
    </fieldset>
    <?php endif; ?>

    Now, whenever a user changes the page, it changes to credit them with content on that page.

Viewing 1 replies (of 1 total)
  • The topic ‘Auto Change Author’ is closed to new replies.