You could try something like this:
// Get the taxonomy's terms
$terms = get_terms(
array(
'taxonomy' => 'your-taxonomy',
'hide_empty' => false,
)
);
// Check if any term exists
if ( ! empty( $terms ) && is_array( $terms ) ) {
// Run a loop and print them all
foreach ( $terms as $term ) { ?>
<a href="<?php echo esc_url( get_term_link( $term ) ) ?>">
<?php echo $term->name; ?>
</a><?php
}
}
Related Posts:
- Create a shortcode to display custom post types with a specific taxonomy
- Generate Shortcodes by Taxonomy
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Custom Post Type Loop within Shortcode
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- Get custom post type list for every category shortcode
- How to display class name in this shortcode post query
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom post type shortcode with taxonomy attribute not working and no errors
- Shortcode in excerpt
- Plugin Error on activating
- Shortcode display CPT Query only showing 1 post?
- How to Create Short Code Using Custom Post type
- trying to display custom post type with custom taxonomy value by shortcode can’t works [closed]
- Problem with shortcode
- Add Shortcode functionality to a function that queries custom post type / taxonomy
- Remove taxonomy slug from a custom hierarchical taxonomy permalink
- How to modify URL structures in custom post types and taxonomies or terms
- Counting Posts of a Given Post Type Having a Specific Taxonomy?
- Integrating an interactive map into a WordPress custom post type
- How to show term-specific post list, without posts associated with child terms?
- Displaying custom post type by first letter through custom taxonomy
- Trouble adding custom featured image for custom taxonomy TERMS
- Include different loop templates in search query
- Category base to url in custom post type/taxonomy
- Custom post type taxonomy template
- Get the terms of a custom taxonomy for a specific author in author template
- Best practice for adding posts in bulk
- Paginated Taxonomy Term Archive including one post per term
- Include taxonomy slug in url?
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- Is it possible to use pages to apply static content to each taxonomy level?
- custom post type and custom taxonomy url conflict
- Custom post types, taxonomies, and permalinks
- Custom Post Type vs. User Page
- How to rewrite custom post type with custom taxonomy urls?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- wp_query to find posts by year and month
- How to display selected taxonomies by their parent
- How to create shortcode to display custom field value on a custom post type
- Custom Field Order by Last Name and First Name
- Get template part using a custom taxonomy term
- How to restrict users and admin from creating new taxonomy terms?
- Displaying custom taxonomy in the admin list of a custom post type
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- How do I move/order posts with a tag to the end?
- Get taxonomy values based on wp_query results
- Ajax Custom Post Filter is not filtering
- Need Output Custom Taxonomy from Custom Post Type
- Display all taxonomy terms, add class if term applies to current post
- Custom WP Query on custom meta and sort by multiple meta keys value
- How to display Custom Taxonomy under Custom Admin Menu?
- Several CPT’s with same Taxonomy name but with different Terms for each
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- Get the taxonomy of a post hierarchically
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- Permalinks: custom post type -> custom taxonomy -> post
- How to get the intersection of two terms both from different custom taxonomies
- Three Most Recent Posts, One Per Term
- How to get WordPress term attached to the Post?
- How can I merge this function(s) that inserts terms to a custom taxonomy with this other that adds a custom taxonomy filter?
- SEO Concerns With Rewrite Rules
- Empty taxonomy items for CPT in admin grid
- How to get_term_meta on single custom post?
- Display Custom Post Types Glossary
- How to fetch custom post types with its full data on wordpress?
- Shortcode with WP_Query more than once on one page
- Query only current post type using taxonomy
- Template for custom taxonomy for custom post type broken
- Taxonomies exists – but not showing up
- Change permalinks for custom post type based on taxonomy term
- Custom Post taxonomy template
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- How to make post templates to include shortcodes only?
- Display Posts that fit a certain criteria on Category pages
- Shortcode with loop stacks output
- Displaying all posts by category and showing content on click
- How do I find out which (page) template file my custom child post is looking for?
- How to search through all child taxonomies using WP_Query?
- Custom post type and custom taxonomy key lenght & query performance
- Custom Post Taxonomy Template Not Loading Properly
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Show ajax form resuslts in page
- Exclude Posts in a Given Category
- Custom permalink with custom taxonomies for custom post type
- Front page url permalink
- Custom meta box in editor of custom post type not working
- Looping through custom taxonomy in one template
- Custom Post Type Permalinks Problem
- Issue on Adding Taxonomy to Custom Post Type Using Function
- Show custom taxonomies in admin panel under custom post type
- Plugins for putting Custom Post Types into the Menu
- Custom term link return 404 error
- Remove slug from Custom Category Permalink + dual-category permalinks
- Display associated taxonomy child name on single CPT page
- How is it possible to list custom post types by “category” like with simple posts?
- Sort ACF by custom taxonomy
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?