Get Custom Field Values by Another Custom Field in WordPress
After struggling with this, I found a workaround that worked. Since every custom field has a connection with my custom post type, I was able to use wp_get_object_terms to get the terms for each custom taxonomy. Using the query to retrieve all posts: $args = array( ‘post_type’ => ‘houses’ ); $houses = new WP_Query($args); $posts … Read more