Remove link from metabox dynamic data

old problem, but i still cannot find a good solution.
i have my dynamic data showing my custom taxonomy, {post_terms_STUFF} and i’m trying to kill the link function, i just need text displayed. i am using metabox.

here i learned how to remove the link capability form a taxonomy, but what if i need the link function in some other areas of the website? link to dynamic data again? link to {term_url} can link to only one taxonomy, same for {post_terms____} or you have a very long and messy url full of ‘%3Ca%20’ or something. maybe ‘manual’ links, displayed only if the taxonomy with the same name have contents? using this method should allow me to prepare a list of categories and put them in the loop, but if i have to add another category i have to edit the link list. a metabox custom field automatically filled with my category list? dunno.

so: how to set the data to not behave like a link in only one instance? is this possible?
thanks. i love you all.

2 Likes

lol no i didn’t, why you say that?

?php $terms = rwmb_meta( 'my_field_id', ['link' => false]); ?>

just put this Code into the Code Element, it even works with the Loop. (! don’t forget to add the closing signs for php <>)

‘my_field_id’ = should be the ID of your custom fields like “TypeEvent_Ta”,
[‘link’ => false] = removes the link

If you saved your Taxonomies as Taxonomy Advanced, and set also to “Cloneable” and “Clone as Multiple”. It worked.

This didn’t work for me when I tried it. Did it work for you?