get tags from custom post type

If you’re trying to create a output template, then yes essentially just replace the word cat or category everywhere in that code with the word tag. Something is still missing from this question though because template_portfolio.php isn’t a standard template name and it’s not clear how it’s being called by your custom theme.