While you can specify separators and such in the_terms()
arguments, it assumes that you actually want links.
You can discard unwanted HTML by using filter:
add_filter('the_terms', 'no_terms_links', 10, 2);
function no_terms_links($term_list, $taxonomy) {
if ('type' == $taxonomy)
return wp_filter_nohtml_kses($term_list);
return $term_list;
}
Or just use deeper get_the_terms()
function and iterate through its return to build your own markup.
Related Posts:
- get_term_by not working when in functions.php
- Exclude specific slug in ‘get_terms’
- Is there a way to disable a term rather than deleting it?
- Modify Term Update Redirection
- Return only the custom sub-term for custom post type, do not echo term-parent
- Check if current term is a child of another term
- get_terms() doesn’t return empty terms even though hide_empty is false
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- Get current term’s ID
- Is it possible to get a Previous/Next Taxonomy term archive URL?
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Possible to register multiple custom taxonomies in one function?
- How to get the top most term (top ancestor) of a custom taxonomy child term?
- How to set hierarchical terms to a post using wp_set_object_terms
- 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 display term description in empty terms archive?
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get terms ordered by post date
- Allow only 1 instance of each term in each custom taxonomy
- get_the_terms() to show all custom taxonomies
- How can I get WP to build a feed based on multiple taxonomy terms
- get_terms: determine if taxonomy term has children
- Check if term is in a taxonomy?
- display taxonomy slug from term ID
- get_term_children doesn’t return an array of children terms
- Get Current Custom Taxonomy ID by Post ID
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy archive showing no results
- Use get_the_terms to list subcategories of custom taxonomy
- get_term and get_term_by return null or false, even though term exists
- Display Taxonomy Terms in an option tag with value being the slug
- Changing taxonomy term by slug (wp_update_term)
- get_terms not returning any custom taxonomies
- Displaying Custom Taxonomy without a hyperlink
- Get only immediate children (and not grandchildren) of a hierarchical custom taxonomy term
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- How to group all terms children’s in custom taxonomy?
- Hierarchical taxonomy list with modificated term links
- Show template part if part of term
- one post per term taxonomy
- How can I change the output display of my pagination?
- Corrupted nav-menu?
- Get name of taxonomies of current page
- List Top 5 taxonomy terms based on number of post
- How to call a custom taxonomy term name inside a function?
- Order taxonomy terms wordpress
- Running a function only once when a taxonomy term is changed
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- Set two terms for a post when they differ only by an accent
- Retrieve the child terms by having the parent’s information
- add pagination in wordpress page template
- Listing Cities A custom taxonmy by selection order
- Cloning product not copying custom taxonomies
- How to create a non removable taxonomy term?
- Filter “get_terms” query
- generate random slug when adding taxonomy
- Get Highest and Lowest get_term_meta() value from Taxonomy Term
- How to get a terms and posts associated with another term?
- Displaying subcategories and then posts in taxonomy template
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- set_object_terms for custom taxonomy in custom post type – not working
- qtranslate-x problem with custom term description
- Resize $term attachment using url
- switch statement for taxonomy content
- Display taxonomy term slugs
- Taxonomy term breadcrumb; how?
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- Display woocommerce product_cat child terms with thumbnails
- How to delete unused terms?
- How do I check if a post has a term with a particular ancestor/parent?
- How to prevent new terms being added to a custom taxonomy?
- How to add images to taxonomies?
- wp_insert_term auto unique name
- Sort posts by number of matched terms
- User role permissions based on taxonomies
- Get Taxonmy Term ID For Current Post
- Insert form checkbox at bottom of taxonomy edit term page
- Custom Taxonomy Term Caching?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- woocommerce custom product category template
- Weekdays as terms – How to order taxonomy terms by ID in admin panel?
- How to show post for a particular term of custom taxonomy?
- How to list terms by first letter, as in A’s then B’s etc
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- How to change custom categories term links?
- Get custom term link archive with prefix
- Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?
- Advanced AND tax_query in sidebar with 2 taxonomies
- Alternative for is_taxonomy() to workaround theme’s default sidebar
- I’ve got a function that auto creates taxonomy terms – Can it auto delete them as well?
- Adding new terms to custom taxonomy