• Hi,

    I have build a custom type content with some custom fields and then I also have a custom taxonomy called “hotel-category” (one value per hotel).
    I made a special template for search result with the hotel title but I want to display the category of the hotel

    I have tries this code to render taxonomy value :
    <?php echo get_the_term_list( get_the_ID(), ‘hotel-category’ ) ?>

    But there is a link on the category and I only want the value.

    Is there a better snippet to do this?

    Thank you

  • The topic ‘How to display a custom taxonomy value’ is closed to new replies.