Ordering WordPress posts by the post__in attribute
Jesus I fought this for so long I had to write it up. The Problem So I wanted to throw a bunch of id’s at the WordPress function get_posts() and have them come back as a nice array that I can do stuff with. The code for this was pretty simple: $args = array( ‘post_type’ … Ordering WordPress posts by the post__in attribute