Hi folks,

I need some taxonomies to be "text" and not a "link". I already changed it to "shown as text" in the drupal admin menu under content templates but it still hasn't changed it. I found code that overwrites drupal and makes the links. I have no idea what to change in the code to make it show text. I'm sure you guys know what to change. Thanks!

[php]
print "". l(
$r1->name,
$url,array(
'attributes'=>array(
'rel' => 'tag',
'title'=> $r->name
)
)
) ."";
[/php]

In case you need the whole code to get an answer:

[php]

<?php

                           
while($r=db_fetch_object($cat))
                            {
                                print
"<div class='field-item sub_cat_heading'>".$r->name."</div>";                               
                               
// get items
                               
$sql1="select term_data.name,term_data.tid from term_data,term_node,term_hierarchy where
                      term_node.nid='"
.$node->nid."' and term_node.tid=term_data.tid and term_data.vid='12' and
                      term_node.vid =
{$node->vid} and
                      term_hierarchy.tid=term_node.tid and term_hierarchy.parent='"
.$r->tid."' order by term_data.name";
                               
                               
$item=db_query($sql1);
                                while(
$r1=db_fetch_object($item))
                                {       
                                    if(
$r1->name == 'Walk-in Closet')
                                    {
                                       
$url_name='walk-closet';
                                    }   
                                    elseif(
$r1->name == 'Floor to ceiling windows')
                                    {
                                       
$url_name="floor-ceiling-windows";
                                    }
                                    else
                                    {
                                   
$url_name=str_replace(array("/","&"),"",trim($r1->name));
                                   
$url_name=str_replace(array(" ","--"),"-",$url_name);
                                   
$url_name=urlencode($url_name);
                                    }
                                   
//$url_name=str_replace(" ","-",trim($r1->name));
                                    //$url_name=urlencode(str_replace(array("/","&"),"",$url_name));
                                   
$url="/apartment-amenities/".urlencode(str_replace(" ","-",$r->name))."/".$url_name;
                                   
$url = drupal_get_path_alias("taxonomy/term/{$r1->tid}");
                                   
                                    print
"<div class='field-item'>". l(
                                       
$r1->name,
                                       
$url,array(
                                           
'attributes'=>array(
                                               
'rel' => 'tag',
                                               
'title'=> $r->name
                                           
)
                                        )
                                    ) .
"</div>";
                                }
                                if(
$r->name == 'General'){
                                    foreach (
$node->taxonomy as $term){
                                        if(
$term->vid == '18'){
                                            print
'<div class="field-item">' . $term->name . '</div>';
                                        }
                                      }               
                                }
                                if(
$r->name == 'Kitchen'){
                                    foreach (
$node->taxonomy as $term){
                                        if(
$term->vid == '19'){
                                           
                                            print
'<div class="field-item">' . $term->name . '</div>';
                                        }
                                      }                                   
                                }
                                if(
$r->name == 'Bathroom'){
                                    foreach (
$node->taxonomy as $term){
                                        if(
$term->vid == '20'){
                                            print
'<div class="field-item">' . $term->name . '</div>';
                                        }
                                      }                                   
                                }                               
                            }
                           
/*foreach ((array)$node->field_apartment_amenities as $item) {
?>

<?php
print $item['view']
?>

<?php
} */
?>

[/php]