Listing tags on item display page

On the item display page, I would like for the item's tags to be listed with each tag on a new line, rather than in a string with commas.

This seems like it should be possible, but I cannot figure out which file I need to edit, or how to go about doing this. If anyone knows how to do this, I'd appreciate any help. Thank you!


You should be able to use something like ...

<?php echo tag_string('Item', 'items/browse', '<br/>');?>

...somewhere in your current theme's items/show.php file.

But it looks like that break tag is re-encoded by Omeka so it renders as a text string.

As a workaround, you could do something like this instead:

$tags= tag_string('Item', 'items/browse', ',');
echo str_replace(',', '<br>', $tags);

Hi ebellempire,

Thank you SO much! The second code you wrote worked perfectly. I really appreciate your help!