You could use a filter and strip_tags()
, as you suggested. Example using post tags, since that’s the taxonomy I had available:
function my_remove_links( $term_links ) {
return array_map('strip_tags', $term_links);
}
add_filter('term_links-post_tag', 'my_remove_links');
Really though, I would just get_the_terms()
and and craft the output yourself:
function the_simple_terms() {
global $post;
$terms = get_the_terms($post->ID,'post_tag','',', ','');
$terms = array_map('_simple_cb', $terms);
return implode(', ', $terms);
}
function _simple_cb($t) {
return $t->name;
}
echo the_simple_terms();
Related Posts:
- Inserting terms in an Hierarchical Taxonomy
- Using a loop to display terms associated with a post
- Get direct children of custom taxonomy
- Conditional display for custom fields/taxonomy
- Exclude Specific Term from Search
- Can I lock down custom taxonomies on a parent term level, but not a child term?
- Including all terms in wordpress tax_query
- term_description help
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- How to remove parent taxonomy name from the title generated by wp_title()?
- Custom Taxonomy Images with Advanced Custom Fields
- Adding session variable and/or cookie based on user-selected input
- How to Reverse Taxonomy Order
- get_terms custom order
- Check whether a custom taxonomy term has published posts?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- List terms from Custom Taxonomy
- WP_Query search posts by custom post type and custom taxonomy
- How to Query Database for posts with certain Taxonomy Term
- Check if term is in a taxonomy?
- get_terms orderby numeric
- Display direct children of the current custom taxonomy in taxonomy.php template
- How to show only terms by id or slug on edit-tags.php (custom taxonomy manage page) for a custom taxonomy
- get_posts of Custom Post Type AND Custom Taxonomy
- Woocommerce: How to change the add to cart text in a certain category? [closed]
- get_term and get_term_by return null or false, even though term exists
- Can you filter wp_dropdown_categories with terms meta?
- one term two taxonomy’s?
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- quey posts from different categories with taxonomy
- How to create pagination for custom taxonomy in WordPress
- Order by taxonomy Value [duplicate]
- Checkbox onclick filtering on the same page
- Category list with indent children list below current category
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- Remove categories from post edit page, but keep in sidebar?
- How to set taxonomy hierarchical level to 2?
- Custom Taxonomy Not Working When added to WordPress Search
- Custom taxonomy terms in the admin site is not saving for widget
- Widget dropdown always displays first option
- How to get posts which must match both custom taxonomies?
- Display all taxonomy, children and grandchildren with links
- Using custom taxonomies to display hierarchical URLs?
- Custom field values to taxonomy terms
- Passing form inputs into multi-taxonomy query
- Custom Taxonomy Tag Cloud?
- Taxonomy Parent Name
- Trying to get custom post of a custom taxonomy
- Get posts by Taxonomy without terms
- Is this the proper way to get a taxonomy description into a post template?
- Admin (All posts) stop responding problem
- Why get_page_template() doesn’t show taxonomy template file name?
- Website loading slowly – Advanced Custom Fields images
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- Custom post type and custom taxonomy 404 on page 2
- Removing custom taxonomies from the admin menu
- Custom post type Category Display
- Custom Taxonomy template not display
- delete term from taxonomy and assign in new one
- pre_get_posts post_meta event
- Creating a Category Taxonomy
- How can I add a custom permalink to a term?
- Adding Child Terms Programatically – No Warning but No dice either
- Custom taxonomy display name issue
- Template file renders on local install, not on web
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- How do I hide a term from non-admin users in get_the_term_list?
- Set post terms by term id
- Query Results not being displayed please help
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Sort taxonomy page alphabetically by meta rather than default post date
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Custom taxonomy throw error 404
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- set object terms after some some time of published post – functions.php
- Get Terms of custom Taxonomy of products with certain Product Category
- Problems using get_the_terms in a plugin
- add pagination in wordpress page template
- Custom dropdown list taxonomy not saved
- WordPress taxonomy terms archive template help
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- Custom taxonomy shows full articles
- Pagination for Custom Taxonomy
- wp_insert_term doesn’t work with custom post type’s tax
- custom taxonomy not displaying
- Custom Taxonomy as Link
- Query Number of Loaded Posts in Loop
- Register custom taxonomy from a Advenced custom field option page
- WordPress doesn’t respect the template hierarchy?
- register and insert category manually
- List of taxonomy archive index page links
- Multiple category lists on one page
- New rewrite rules for custom taxonomy and reuse default
- How to get tags with custom taxonomy field?
- How to associate string with individual use of taxonomy term
- Primary Taxonomy for Post
- Polylang non translatable custom taxonomy
- Getting Catategory / Taxonomy Description on Non-archive Pages
- Trying to list custom categories in custom post type [closed]