Forums

List current custom taxonomy (3 posts)

  1. baszer
    Member
    Posted 6 months ago #

    I have got a short question. I want to list the name of the current taxonomy. The following code works, accept it gives my current taxonomy as a URL.

    <?php echo get_the_term_list( get_the_ID(), 'name_of_tax_type', 'All' ); ?>

    How to get rid of the url?

  2. baszer
    Member
    Posted 6 months ago #

    anybody an idea?

  3. esmi
    Theme Diva & Forum Moderator
    Posted 6 months ago #

    Try <?php echo strip_tags( get_the_term_list( get_the_ID(), 'name_of_tax_type', 'All' ) ); ?>

Reply

You must log in to post.

About this Topic

Tags

No tags yet.