• Resolved charlie67p

    (@charlie67p)


    Hi!

    Is it possible to display the core/post-terms block without link ?

    I tried a “isLink”:false in my html template, but it’s not working.

    Or can I do it with a block variation ?

    Thanks

    • This topic was modified 1 year, 12 months ago by charlie67p.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    I could be wrong, but I don’t think there’s an acceptable variation field to manage if a term includes a link or not. You could always develop your own custom block ?? (or shortcode)

    The only other option I see is to use the "term_links-{$taxonomy}" PHP filter to strip out the anchor tags from the list. The trouble with this is it’ll apply to all instances of that taxonomy’s get_the_term_list() calls, unless you can somehow differentiate your block’s usage from all others. Sometimes there’s a unique set of attributes that would distinguish your block’s usage.

    Thread Starter charlie67p

    (@charlie67p)

    thank you @bcworkz
    I found a way to remove links with jQuery

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘core/post-terms block without link’ is closed to new replies.