This code pulls 3 recent posts from category 10 features Value1, Value2, and Value3 as meta values. The separate arrays are then merged and sorted by post date. Finally, the loop is cancelled if the posts are older than 2 months.
It isn’t terribly efficient to do it this way but until meta_value takes more than one option this is a functional workaround.
The topic ‘Using multiple instances of get_posts to pull posts with different meta values’ is closed to new replies.