Wordpress Display Recent Authors of Posts

/ Published in: MySQL
Save to your folder(s)

Select wp_users and wp_posts to retrieve data from both tables in order to display post title, post date, author name with gravatar (gravatar isn't listed in this code)
Note: probably not idea solution, but it's one of many fixes

Copy this code and paste it in your HTML
  1. SELECT * FROM wp_users, wp_posts WHERE wp_users.ID = wp_postts.post_author AND wp_posts.post_type = 'post' AND wp_posts.post_status = 'publish' ORDER BY wp_posts.post_date DESC LIMIT 10

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.