How to remove a specific term page link? I have taxonomy term list page..


Apple
Banana
Sweets
Cake


These are the terms listed with links to default term page.

suppose I want to remove the link for Apple only but listed how do I go about it?

I have tried this 

  function mytheme_node_view($node, $view_mode, $langcode) {
    if (isset($node-&gt;content['field_fruit_name'])) {
      foreach ($node-&gt;content['field_fruit_name']['#items'] as $delta =&gt; $item) {
         if (count(taxonomy_select_nodes($item['taxonomy_term']-&gt;tid)) &lt; 2) {
           $title = $node-&gt;content['field_fruit_name'][$delta]['#title'];
           $node-&gt;content['field_fruit_name'][$delta] = array();
           $node-&gt;content['field_fruit_name'][$delta]['#markup'] = $title;
         }
      }
    }
  }


its not working... so if i can remove the link for each term individually it would be great.
Little bit tricky but you can achieve without code.


Add a new boolean field to taxonomy term.(eg: show link(field name))




Save for each term show link value either true or false. Depend you wants to show the link or hide the link for that term.


Add three fields like shown in the image in your views.





Taxonomy term: Name [hidden] -- Exclude from display and deselect link to taxonomy term 





Taxonomy term: Term ID [hidden]  -- Exclude from display





Taxonomy term: show link