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->content['field_fruit_name'])) {
foreach ($node->content['field_fruit_name']['#items'] as $delta => $item) {
if (count(taxonomy_select_nodes($item['taxonomy_term']->tid)) < 2) {
$title = $node->content['field_fruit_name'][$delta]['#title'];
$node->content['field_fruit_name'][$delta] = array();
$node->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.