You have to use your object like this :
while ( $query->have_posts() ) : $query->the_post();
Related Posts:
- Using wp_query is it possible to orderby taxonomy?
- display posts with same taxonomy term
- Adding session variable and/or cookie based on user-selected input
- Advanced Tax Query
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- Query custom taxonomy for category including children
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Advanced AND tax_query in sidebar with 2 taxonomies
- Using wp_query is it possible to orderby taxonomy?
- “tax_query” parameter not working with WP_Query
- How do I exclude a custom taxonomy from the post loop
- How to use taxonomies on attachments with the new Media Library?
- How to add images to taxonomies?
- Can you add the visual editor to the description field for custom taxonomies?
- Check if a post has any term in this custom taxonomy?
- custom post type taxonomy “tag” archive : no post found
- Add custom taxonomy fields when creating a new taxonomy
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Custom Taxonomy and Tax_Query
- How to display custom taxonomies in posts?
- Get taxonomy names by post id
- Creating Custom Taxonomy without mapping to any post type
- Using WordPress to make a “Product Search” type navigation drilldown
- Displaying the category name of a custom post type
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Combine two taxonomies in a hierarchical tree
- Custom taxonomy hide meta box but show in menu
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Including all terms in wordpress tax_query
- Exclude specific slug in ‘get_terms’
- wp_insert_term – parent & child problem
- Is there a way to disable a term rather than deleting it?
- Widget to display custom taxonomy tag cloud
- Modify Term Update Redirection
- Display posts the match taxonomy term linked from wp_list_categoies?
- How to get first post in a category of a custom taxonomy
- Hook to process a new taxonomy tag before it is created?
- Return only the custom sub-term for custom post type, do not echo term-parent
- Get total number of comments from posts in a specific custom taxonomy
- Custom taxonomy on permalink
- Display one post from each term in a custom taxonomy [closed]
- Check if current term is a child of another term
- Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children
- get_terms() doesn’t return empty terms even though hide_empty is false
- How do I filter posts by taxomony using AJAX
- SQL QUERY needed to get POST category (taxonomy) ? – MUST be SQL statement
- Remove Category description textarea
- Formating the_terms() function output
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- Archive template for taxonomy terms
- Multiple users – only allow them to manage their own terms for custom taxonomy when logged in
- Custom taxonomy on users with UI
- How to return a list of custom taxonomy terms via the Gutenberg getEntityRecords method
- Create taxonomy with meta term using the WP Rest Api
- wp_options table value
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How can I set up a category “overview” page?
- Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes
- search query within custom taxonomy term, post title and meta field
- Sort posts by number of matched terms
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- wp query with multiple taxonomy?
- wp_query orderby title and meta key value (WP3.1)
- How to get the parent’s taxonomy?
- On Taxonomy Template page, want to add Post_Type
- Page queried instead of a custom taxonomy
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Taxonomy Relationships
- Possible to register multiple custom taxonomies in one function?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- Taxonomies not appearing in columns on dashboard
- Combine multiple custom user taxonomy in single url
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- How to modify default taxonomy field to a single text field?
- The next_posts_link() show me a aditional page in blank
- Add custom taxonomy to default category taxonomy?
- How to set hierarchical terms to a post using wp_set_object_terms
- Help with a query not working with custom taxonomy
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- How to output the taxonomy term name in a widget
- How to link categories to custom taxonomy terms?
- List taxonomy / category count showing list published posts only
- Excluding a custom taxonomy term breaks wp_get_post_terms
- How to display term description in empty terms archive?
- Filter and list posts of a custom taxonomy
- Display sub-taxonomies based on SELECTED parent-taxonomy
- Checking if a Page has an Associated Term?
- Save Filter for Taxonomies
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- why do drafts return as part of wp_query?
- Function to limit the number of posts in taxonomy.php
- Improving WP_Query performance for multiple taxonomies
- Create Child Taxonomies
- Is It Possible To Have Shared WordPress Custom Post Types?
- How to Modify Taxonomy Archive Page with Search Parameter?
- Taxonomy , subtaxonomy,child taxonomy of a product woocommerce
- WordPress renames slug of tags used in multiple taxonomies?