I would do this by looking into the wp_get_post_revisions
So put this in your functions.php
:
function show_revisions( $revisions ){
echo '<ul>';
foreach( $revisions as $revision ):
// Gets the author if there is one.
// Prints (??) if there isn't one.
$author = empty( ucfirst( get_the_author_meta( 'display_name', $post_author ) ) ) ? '(??)' : ucfirst( get_the_author_meta( 'display_name', $revision->post_author ) );
echo '<li>';
echo '<p>Author:' . $author . '</p>';
echo '</li>';
endforeach;
echo '</ul>';
}
And put this in your single.php
and/or page.php
and/or whereever you want the list of authors to be shown:
$revisions = wp_get_post_revisions();
show_revisions( $revisions );
Related Posts:
- Total Word Count For Posts And Comments By One Author
- Change the Author Slug from Username to Nickname
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- Display edit link if post author is current user
- Force display name as full name
- Assigning tags to user?
- Authors Page : A page of authors
- Completely hide user info
- Users roles, make a page belonging to multiple users
- Tagging users in WordPress
- Is there any function available to echo current user’s profile url?
- the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
- Get tags for current user
- Where is the information about the authors for articles stored?
- Getting author page slug from get_users() or get_userdata() functions
- Delete User via Frontend
- How to force authors to ‘submit for review’?
- Create Next and Previous Link to User orderby Last Name
- How to implement friend system for WordPress?
- Creating User Profiles using author.php
- Author comment count in author page
- Order users by user role
- How can I set wp_dropdown_users so that it shows only authors?
- How to create page for user?
- How do I change the user via SQL?
- Add new user and user bio at same time
- show count author post today
- Link to Authors blog posts
- Confirmation required on email change
- Email user when password is reset by admin
- How to work around “that email address has already been used” error?
- How can I run a WP-CLI command as authenticated user?
- How to Prevent deleting user accounts in WordPress Back-end?
- LEFT JOIN, INNER OUTER JOIN, LEFT OUTER JOIN is driving me crazy. Please help?
- Recover the user that have been deleted
- WordPress edit_user_profile_update update secondary role
- Check if user is online?
- How to check that if current user (ID) has posts or not
- How to get the Role Name of the current user? (WordPress)
- how to get recent registered author id?
- Is it possible to duplicate users on a new WordPress install?
- Why don’t first_name and last_name appear when you print_r the WP_User object?
- How to use search_columns in WP_User_Query?
- WordPress to use Drupal users’ credentials
- Authenticate with a Rails app?
- Send Email to Users after Deleting Account
- How to add local users to wordpress without email password?
- WP User Query fails when searching meta queries and search columns
- Call to undefined function wp_insert_user()
- *wpupdateuser* user_login in my WordPress database
- Updating user meta
- Changing a username
- Change the user_login at registration
- How to add a user profile page to frontend?
- Error: How to allow the “contributor” to upload media in wordpress
- Delete users from multisite after they have not logged in for a set amount of time?
- Restrict access of admin uploads to certain logged-in users?
- how to know when the user is in specific part of the website and when he leaves that part and display the data in the admin dashboard
- Find user by nicename and open profile
- Custom default filtering in the user admin panel disables the other sortable columns
- Register user when after filling contact form
- Is possible to allow user to login with different role?
- Creating user without username and password
- Is this code true or not
- Check for valid email after user inactivity?
- How do I let contributors edit their posts after being approved once?
- Custom Comment Notifications Fire on each Page Load
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- Getting list of top 10 users and sort on last name
- how to set default update_user_meta values wordpress
- Fix ‘Add Role’ Option not there in wordpress 5.2.2
- Get user id after save post
- Redirect user to login if not logged in, on specific pages
- Check if user is logged in via JS? [duplicate]
- Page for logged in user to Edit/Delete their own content?
- Followers for WordPress [duplicate]
- Is there a way to rate users instead of posts?
- Is it possible to build social networking website using WordPress?
- trying to add a author value in wp page links?
- Is there a way to call via javascript if a user is logged-in on a static html file?
- I need a link that directs the user that is logged to his profile
- Is this a hack? WordPress Usernames of every website we have changed into one single name automatically?
- Getting user data via ajax
- The same session information for peer users on two different WordPress servers
- How to destroy all user sessions via WP-CLI
- Is a list of user names or IDs in a custom profile field the best way to create a followers list?
- How to restrict Admin from creating new users from Add new user screen in dashboard to only of one domain?
- is_user_logged_in() not working after domain change
- Designing a member area on my site
- view and update form only for registered users
- Redirect based on log-in status per JavaScript
- i need to let a user to add a role from a frontend form
- Integrating Facebook Registration (and Login) on a WordPress page
- Create users from frontend without password
- How to get user contact info
- Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?
- How to allow users to make quizzes or tests in WordPress?
- Sorting Users page admin column with ACF field
- Can we get user profile page using user_id in the URL?