Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Display WordPress custom taxonomy tags but not as links

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32029

    I’m working on a WP theme and I’ve got a custom post type for videos, and then a custom taxonomy set up like tags to display the people in each video.

    The standard way of spitting out those custom taxonomy tags is to use this function, yes?

    ID, 'people', 'People: ', ', ', ''); ?>

    But that makes each term a link, but I don’t want a link, I just want plain text.

    I would appreciate any help or ideas on how to do this. Thanks!

    #55389
    seeingsound
    Member

    Here you go:

    ID,'people', 'People: ', ', '); if (!empty($terms_as_text)) echo '

    ', strip_tags($terms_as_text) ,'

    '; ?>
    #55392

    Works like a charm. This is just what I was looking for. Thanks a ton!

    #50466
    carson
    Member

    This is awesome. Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.