Meta Box
Support Forum
Support › MB Views › Insert field "Post term list" outputs with anchor tagResolved
Hello,
When I insert field "Post term list", the value is output on the front end wrapped in an <a> anchor tag. How do we disable this? I'll create my own links.
<a>
Thanks,
James
Any way to just get the tax field value clean, without being wrapped in an <a> tag?
Hi James,
Thank you for reaching out.
You can use the function strip_tags to remove HTML tags from the list. For example:
{% set term_list = mb.get_the_term_list( post.ID, 'category', '', ', ' ) %} {{ mb.strip_tags( term_list ) }}
Thank you, sir! Worked like a charm!