Support

Account

Home Forums General Issues Query post with post object field Reply To: Query post with post object field

  • Hi Himandev,

    It’s totally possible, the query method depend on the users field type.

    I assume your field type return user by ID. You have to query your score CPT with wp_query and metaqueries.

    If it’s a single post object field allowing only one user : use the wp_query with you field name as key and an equal criteria with the needed user ID.

    If it’s a single post object field allowing multiple user : use the wp_query with you field name as key and and In criteria with the needed user ID.

    If you have your user field in a repeater : I recomand you to follow the John Huebner method