• Resolved malikkhakh

    (@malikkhakh)


    I have a custom taxonomy with the name department. Now I want to show it on front end, but is shows as clickable to its archive page. I want to show it is a simple text. the code I am using is given below:
    <? the_terms( $post->ID, 'department', '', ', ', ' ' );?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nwjames

    (@nwjames)

    @malikkhakh ,
    Thank you for you question, It is really a general question on WordPress processing of taxonomies rather than specific to the plugin., however I can give a suggestion.

    Try
    <? strip_tags( the_terms( $post->ID, 'department', '', ', ', ' ' ) );?>

    Clearly this will remove the wherever rgey occur, so you may need to add code to determine whether you are on a front-end or archive page.

    Hope this is of use,
    Neil James

    I can’t even get my terms to display at all ?? Assistance please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I want to show non clickable custom taxonomy’ is closed to new replies.