Remove Permalink from Taxonomy
-
Hey all
Am I able to adjust this code to display my taxonomy without having it link to the category archive. I just want to display the taxonomy and that is it.
Anyone able to explain?
<ul> <?php echo get_the_term_list( $post->ID, 'rooms', '<li>Rooms: ', ', ', '</li>' ); ?> </ul>and this is in functions.php:
register_taxonomy( 'rooms', 'listings', array( 'hierarchical' => true, 'label' => 'Rooms', 'query_var' => true, 'rewrite' => array('slug' => 'rooms') ) );of course these are all snippets so they don’t need rewritten.
thanks in advance!
The topic ‘Remove Permalink from Taxonomy’ is closed to new replies.