• Is there a way to display Taxonomy Terms without them being a link?

    I basically want to display all the terms underneath my Taxonomy of “Headings,” but without them being links.

    I’ve tried multiple solutions such as get_terms, get_the_terms, the_terms, wp_tag_cloud but I was unable to find a solution.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s one of the examples in the function reference of get_terms. Have you tried that?

    Thread Starter bmil21

    (@bmil21)

    When I use that function, it displays simply “array” on the page.

    Can that be used?

    Thread Starter bmil21

    (@bmil21)

    Actually, can I change the link for wp_tag_cloud?

    Here’s a portion of my code:
    <?php wp_tag_cloud( array( 'taxonomy' => 'Headings', 'unit' => 'px', 'smallest' => '12', 'link' => 'edit' ) ); ?>

    My links display correctly but the destination is empty ‘href=”‘” when I want to change it to something else.

    Am I able to edit the wp_tag_cloud function so that I can have the destination be what I want?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Taxonomy Terms without Links – (get_terms, the_terms, wp_tag_cloud)’ is closed to new replies.