<?php echo get_the_term_list( $post->ID, 'people', 'People: ', ' ', '' ); ?>
returns something like this:
People: <a href="person1">Person1</a>, <a href="person2">Person2</a>, ...
How can I make it return the same thing without links like this:
People: Person1, Person2
It may be easier to just write the list manually, something like:
Alternatively you can also use
I found another method that more directly answers my question:
Credit: CSS Tricks
Using strip_tags() Can get complicated if you want to show your terms as an HTML list.
Here, there’s something for you. $raw set to true (or anything that’s not empty) will just create an inline list with the $separator of your choice, if not, it will generate an HTML list without links. If you want your list to have a styled title, set the $titletag to, say H1 or H2. If you don’t want a title, just leave $title empty.
Example of use: