Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = new WP_Query(array('post_type' => 'foo', 'numberposts' => 20));
- $ids = wp_list_pluck($query->posts, 'ID');
- $terms = wp_get_object_terms($ids, 'multi_post_type_tax');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement