Get posts by guest author no longer working after 3.3.0 update
-
This may be a bug in the updated plugin, or maybe it’s intentional, I don’t know.
I have written my own WP_Query to get posts by authors (both WP users and co-authors). I followed the example here: https://vip.wordpress.com/documentation/list-posts-by-a-co-author/
This works fine on version 3.2.2, but as soon as I upgrade to 3.3.0 it stops working for guest authors. I’ve had a look at the query it generates and it’s writing the query to include a check for post_author=$id, and for my guest authors that $id var is showing as 0 (which is clearly incorrect), therefore no posts show.
It still pulls posts for the guest author when in the loop, but I want to do this outside of the loop. Anyone else seen this issue? Is there another way I can pull out posts by guest authors outside of the loop?
- The topic ‘Get posts by guest author no longer working after 3.3.0 update’ is closed to new replies.