Should be easy enough. First, get the City.
<?php $city = get_field('city'); ?>
Then in your WP_Query, insert the taxonomy parameter:
<?php $loop = new WP_Query( array( 'post_type' => 'member', 'posts_per_page' => -1, 'location' => $city ) ); ?>
Et Vilola: you only get the Members that have the taxonomy $city.
Related Posts:
- How do I ensure that post_type and Taxonomy use the same slug?
- Order by custom field attribute
- Advanced search form with filters for custom taxonomies and custom fields
- How to Add Custom Fields to a Custom Post Type?
- What should I use – Taxonomies, custom fields, Post Type?
- Search that will look in custom field, post title and post content
- clients list using wordpress
- Custom Taxonomy Template Post List with Sort Order
- How to do a custom bookmarks post type?
- Ajax filter with custom taxonomies
- Filter posts with ajax form and checkboxes
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- How to get only one category of custom post type?
- Custom post type / custom fields
- Get all taxonomies for all post types
- Append taxonomy terms as class names in markup?
- List terms from Custom Taxonomy
- WP_Query search posts by custom post type and custom taxonomy
- Custom Posts Hierarchy? (State/City/Restaurant)
- Automatically populate a hierarchical taxonomy from a custom field
- wp_query to find posts by year and month
- How to output wordpress custom tags separated by comma?
- Weird problem happening with custom taxonmy when creating/updating posts
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- get_posts of Custom Post Type AND Custom Taxonomy
- Received nothing after executing AJAX post function
- Replace text in post from cvs
- Get custom post type list for every category shortcode
- Query & Order posts by custom fields
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Show custom post type relationships by taxonomy
- get_post_meta not working on publishing
- Using custom field content as expression in IF statement [closed]
- Categorize custom post type
- Hierarchy and access control for Custom Post Types (CPT)
- First custom field value (out of several) displayed twice after query
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- Show fields based on taxonomy selection in editor
- Permalinks: custom structure for taxonomy – tags?
- Add additional field to custom post_type
- Get term name without a foreach loop
- Custom post type’s extra fields – how to handle?
- Trying to get custom post of a custom taxonomy
- Creating custom post type with custom taxonomy and custom fields programatically
- Get custom post type categories to show up in menus
- Show current custom taxonomy
- finding and using post type fields in WordPress
- Custom Taxonomy Search result page
- How to get_term_meta on single custom post?
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Custom post type and custom taxonomy 404 on page 2
- How to fetch custom post types with its full data on wordpress?
- How to populate a Gravity Forms Custom Post Field (dropdown type) with custom taxonomy terms? [closed]
- Get custom term meta problem on single post type
- Custom post type name and assigning custom taxonomy
- Building a Portfolio and need some direction
- CPT Repeatable Fields + Undefined Index
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Order custom posts by taxonomy, then by meta_key
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- add_filter get array data before display in custom post_type
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- ACF – Retrieve custom taxonomy from a relationship field
- set object terms after some some time of published post – functions.php
- Query custom post type that has a serialized relational advanced custom field value
- Assigning categories to custom post types via a front-end form; only works for native post type
- when looping through custom post data not appearing
- wp_insert_post deleting previous post custom meta
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- I want to create a metabox under custom taxonomy
- Adding a Section for Visitors
- Show parent category and subcategory once in while loop
- Custom Taxonomy – fields
- Query posts by multiple custom fields
- Custom taxonomy template for custom fields loop [closed]
- The most recent post of custom taxonomy
- Create Inclusions and exclusions
- Show tags of custom post types in WordPress
- What’s the most efficient way to get two queries based on an if statement?
- WordPress loop add heading before first of type
- Best way to use Category & Custom Fields?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Get month and day from a Date Picker custom field
- predefined custom field on registration page
- Values inside a custom field to determine which category posts to display
- Storing/querying custom date data
- Select Menu for Custom post Type does not save
- Custom post type and custom taxonomy archive inaccessible
- Inserting two categories
- How to change order of custom post types. I want Featured post to come first
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- I want to understand plugin implementation of custom posts / taxonomies / metaboxes
- I want to show image from custom field image on my custom page template
- Creating subpages for each custom post type