admin管理员组

文章数量:1130349

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')

                            )

               );

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')

                            )

               );

本文标签: WP Query Ordering posts by another post types meta