Single loop for wp_query and wp_user_query
You can not merge two different queries when the returned type is an object, because they have different methods and properties. Instead, you can get them as an array. Then you can merge them and compare the dates. For this, I’m going to use get_posts() over WP_Query(), and get_users() over WP_User_Query() to achieve this. The … Read more