In your loop you only call the title using the_title
if you want to display the terms of the custom taxonomies you need to call them and the easiest way would be to use get_the_term_list
for each taxonomy :
while ( $my_query->have_posts() ) : $my_query->the_post();
echo '<li>';
the_title();
echo get_the_term_list( $post->ID, 'location', 'Location: ', ' ', '' );
echo <br/>
echo get_the_term_list( $post->ID, 'genre', 'Genre: ', ' ', '' );
echo '</li>';
endwhile;
Related Posts:
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- get_terms does not return any results for my custom taxonomy?
- Order terms by term_order
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get value in custom field with taxonomy [closed]
- How to display warning on post editor when trying to add new term to custom taxonomy?
- How do you remove a Category-style (hierarchical) taxonomy metabox?
- Modify Term Update Redirection
- How to get first post in a category of a custom taxonomy
- Is there a way to import terms into WordPress?
- get_terms() doesn’t return empty terms even though hide_empty is false
- You are not allowed to manage these items – bug introduced in 4.4
- Get taxonomy name of current post
- How to hide custom taxonomy archives same way as hiding custom post types?
- Custom metabox for menu administration page?
- Remove Custom Taxonomy Base
- Custom Fields and performance
- Retrieve custom taxonomies
- why do drafts return as part of wp_query?
- Populating dropdown menu with hierarchical taxonomies
- Taxonomy archive template to have conditional logic for displaying child categories
- Set posts_per_page in WP_Query for custom taxonomy
- Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?
- How do I get WordPress URL rewrites into Sitemap?
- How can I allow a custom taxonomy for certain roles?
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Sorting taxonomy columns by meta value numeric
- Custom taxonomy query not working with switch_to_blog
- How can I check if a taxonomy has more than one item?
- Specifying a size when displaying an image associated with a taxonomy through ACF
- Metabox to list/store a certain type of post tag
- Get Current Custom Taxonomy ID by Post ID
- How can marge these loop code?
- How to check if do_shortcode will be execute directly in a template php file
- I used the Tax-meta-class by bainternet but i still can’t get it to display any of the results.
- Get_terms stopped working after WP 4.2
- Show only the grandchildren (using get_terms)
- remove custom taxonomy base / slug [duplicate]
- triple drop down for populating custom taxonomies
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- Render P2P metabox per taxonomy term
- where is the 4th taxonomy terms? taxonomy terms is disaapearing in the loop
- Replace taxonomy permalinks
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- Front-End Custom Taxonomy Tag Select
- How to rename custom taxonomy URL with extra words
- Display all posts that use a custom taxonomy
- Override Taxonomy Template
- Set tax_query conditionally with new WP_Query
- Separate tags with semicolon
- Are term IDs unique even between multiple custom taxonomies
- How to customize custom taxonomy url?
- What is the action hook that deletes a taxonomy term from the backend? And how to retireve the term id before deleting it?
- Custom taxonomy terms not showing as list Gutenberg Editor WordPress
- How can I get a paginated list of custom taxonomy tags with posts?
- Adding a custom taxonomy to “nav_menu_item”
- Search only custom taxonomies
- Create alphabetical Pagination for custom taxonomy?
- pagination not working on custom-taxonomy template
- Save values generated via API as taxonomy terms
- URL rewriting taxonomy term
- Sort and paginate custom post taxonomies alphabetically
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- 404 Error on Custom Post Type / Custom Taxonomy
- Drop-down filter doesn’t retrieve custom taxonomies
- Filter with two id of the same value CPT UI(taxanomies)
- get_terms does not return any results for my custom taxonomy?
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- How to filter and/or sort user taxonomy query inside custom user taxonomy archive page?
- Create multiple taxonomies with custom fields values on the fly when creating new posts
- new custom filed not showing in taxonomy
- Custom Taxonomies Archive Page 404
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- Why is the category item count not updating after assigning a category?
- Add custom taxonomy for post using cron job
- deleted_$taxonomy not getting fired
- Custom column into custom taxonomy (img tag with slug-name as file name)
- ACF Custom field not showing in Timber Taxonomy page
- Displaying subcategories and then posts in taxonomy template
- WP Query : strange behaviour with multiple no-hierarchical tax
- How to show one post content in another post content which has same terms?
- How to set “manage categories” capabilities on a post type taxonomy but not on the general categories?
- Dynamic drop down of child terms and then drop down posts
- Include attachments with a custom taxonomy in search
- List terms and order by second word
- If term and page have the same slug, how can I view the term archive?
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- How to permanently delete a taxonomy
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Display term description on hover using get_the_term_list
- How to query posts that are not related to any term of a taxonomy?
- add_action with variable as a part of the $tag string
- Display woocommerce product_cat child terms with thumbnails
- How to add a custom page template selector to a custom taxonomy?
- How to display Custom taxonomy on custom post listing page [duplicate]
- add_rewrite_rule pagination 404 error on page 4 and above
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post