Sort by custom field that is an array?
At the stage of retrieving posts from database this is impossible (or at least impractical), since arrays are stored serialized by PHP in meta table and SQL won’t be able to process them on the fly effectively. This is easy enough to do for specific set of posts retrieved, just sort results in $mostsharedposts->posts before … Read more