I have a custom post type called BID which contains a users bid (similar to freelancer, upwork, etc) However I need the BID results on the page to be ordered by meta stored in a users profile, which is a custom post type PROFILE.
How would I go about doing this?
Here is my current Query
new WP_Query( array( 'post_type' => BID,
'post_parent' => get_the_ID(),
'posts_per_page' => 20,
'post_status' => array('publish','complete', 'accept', 'unaccept')
)
);