wp_get_object_terms() isn’t the problem. the_taxonomies() is doing the outputting; it doesn’t return anything.
So, your code is equivalent to:
the_taxonomies( 'before=<ul><li>&sep=</li><li>&after=</li></ul>' );
wp_get_object_terms( $id, null );
Now, if you go to wp-includes/taxonomy.php you will find the dot in the_taxonomies() source.
To remove the dot, you need to add a filter:
function remove_the_dot($template) {
return '%s: %l';
}
add_filter('taxonomy_template', 'remove_the_dot');
In case you’re wondering, yes, this is an akward way of doing things.
In WP 3.1, you can modify the template simply by passing it as a parameter:
the_taxonomies( array(
'before' => '<ul><li>',
'sep' => '</li><li>',
'after' => '</li></ul>',
'template' => '%s: %l'
) );
Related Posts:
- get_post_terms not working as expected
- How to limit the number of terms (terms acts like categories)
- Correct use of get_the_terms()
- I have a term_taxonomy_id — is there an API call to get the taxonomy?
- Is there a way to set singular/plural labels for taxonomy term names?
- Return only the custom sub-term for custom post type, do not echo term-parent
- Get_term_by only returns one item from array
- Term begins with a letter
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- What hooks/filters are there to alter selected terms on post save?
- tax_query: What to pass when I want to have all terms?
- Checking if a Page has an Associated Term?
- get_terms parent for current product only
- Get post terms for multiple posts at once?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Add a term to an attachment submitted from front end
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- Check if an array of posts has posts from a specific category
- Get terms ordered by post date
- Get only one product category woocommerce
- what tables uses wp_get_post_terms
- How can I get WP to build a feed based on multiple taxonomy terms
- Show taxonomy list with taxonomy images ( SOLVED)
- What is the term shortlink structure?
- Should I be using custom post types for this or terms and taxonomies?
- Invalid argument supplied for foreach() in search.php
- get_term_children doesn’t return an array of children terms
- Order by slug in get_terms with multiple taxonomies
- Set post terms on post publish
- Avoid duplicate post from same Taxonomy
- get_terms ‘number’ parameter does not appear to work
- How can I find the taxonomy in edited_{taxonomy}?
- Set terms in a custom post
- Display Taxonomy Terms in an option tag with value being the slug
- How can i insert term in a specific language of Polylang?
- Setting posts_per_page for taxonomy term template
- Custom post taxonomies as tax_query terms?
- Allow a Taxonomy Term to be Used Only Once Across All Posts
- How do I display the taxonomy for a custom post type in an array
- Count Published & Draft Posts Associated With Each Term
- How to get post’s current parent term ID?
- Is There a Difference Between Taxonomies and Categories?
- import_id parameter for wp_insert_term to create custom ID for category
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- get_the_term_list – Return links to edit.php instead of link to taxonomy archive template
- How to sync to custom taxonomies (tag structure)
- Taxonomy order exception for specific term
- How to apply comma separation,strip_tags and orderby to wp_get_object_terms
- 100+ terms in any taxonomy slows down post updates?
- wp_set_object_terms not working inside loop
- Add Taxonomy Description with wp_set_post_terms
- wp_insert_post() does not support variable
- Missing term_id value
- WordPress Term for Custom List
- echo term name outside the loop, using term slug
- Polylang : Display term archive even if no posts
- What is the purpose of the “term_id” column in the “wp_term_taxonomy” table?
- How to return newly added terms when using wp_set_object_terms
- Exclude product attributes from taxonomy terms loop
- How to get terms from a custom taxonomies after WordPress 4.5.0
- Get name of taxonomies of current page
- How to update a taxonomy term for a custom post type with auto incrementing number
- Echo taxonomy name – second level
- If product is in sub-category show code
- Get terms in hierarchical taxonomy
- Unable to get the Parent Custom Taxonomy Terms
- Avoid WP_Query’s duplicate posts with taxonomies
- Taxonomy Checkbox Admin Panel
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- Using get_terms for custom taxonomy in functions.php
- wp_set_object_terms doesn’t work
- Save queried result into database
- Checking if a product ID has taxonomy term attached not working with has_term
- Taxonomy.php inheriting first post
- get taxonomies from terms
- Get WooCommerce product category list in functions.php
- I want to get term by term_name without taxonomy
- Filter “get_terms” query
- taxonomy terms, inverted
- How to display taxonomy order child, parent
- Post filter with multiple checkbox taxonomy terms
- generate random slug when adding taxonomy
- wp_get_post_terms – Do Not list Duplicates
- How to share terms between two taxonomies?
- Taxonomy terms can’t find posts from archive.php or taxonomy.php
- Wrap custom terms loop
- What to do with shared terms splitting in WordPress 4.2?
- GET Taxonomy ID
- Get term_taxonomy_id from return of wp_insert_post
- Displaying Results From Custom Taxonomy Query
- Non-Recursive get_term_children()
- Delete Term via edit-tags.php
- Problem importing categories and sub-categories
- Get object terms with no children?
- Order taxonomy terms by the frequency of use in the last 30 days
- Display associated taxonomy child name on single CPT page
- Issue On Listing Woocommerce Parent Tag List
- is action hook not working on quick edit?
- WordPress emails error regarding the argument type even if the type is correct
- How to solve/debug get_terms suddenly showing no results?