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.
Related Posts:
- List all the tags from a custom post type
- What are the differences between custom post type and custom page templates?
- Ordering Posts List By Taxonomy Terms?
- Find callback function for custom taxonomy metabox
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- How to search from specific post type with tags?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- associate custom post type with tags with specific pages
- Is it possible to make tag archive page specific to Custom Post Type?
- Multiple portfolios with one custom post type?
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to make a custom taxonomy selectable in post publish area?
- Add Tags to custom post type
- Can custom taxonomies items have attached properties?
- Change Permalink Structure for Tag.php template
- Custom-Posttype & Custom Taxonomy WP_Query
- search also in taxonomy, tags and custom fields
- Listing tags from a custom post type
- Show all tags on custom post type
- Best way to specify “article type” in URL
- Display posts with tag for custom post type only
- How to list tags from custom post type attachments?
- Why does my taxonomy have a category style div id?
- portfolio custom type tags support
- How can I create an automatic drop down menu with my tags?
- display custom taxonomies limited to custom post type?
- The Difference Between Categories and Tags and Taxonomies and Terms
- wp_get_canonical_url showing first url of the post for custom page
- Print all the tags from a custom post type
- add custom tags for custom post type in wordpress
- Enabling permalinks disables custom page template
- Loop and add Specific Categories and Products Images
- Advanced archive url structure (category, tag and date)
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Search CPT by tag ids
- How do I find out which (page) template file my custom child post is looking for?
- How to set “section categories”?
- Tags being removed upon updates to related posts: ACF/Genesis/WP5.4.1
- CPT tags not showing when editing post
- How to add independent “Tags” to Custom Post Type?
- Custom Post didn’t display on tags page
- Add tags to a “pending” post before publishing
- Custom Post Type tag taxonomy “Page Not Found”
- Ordering Posts List By Taxonomy Terms?
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Loop multiple taxonomy in custom post
- Generating List of Tags from Custom Post Type
- Archive.php is not displaying tags
- WordPress Custom Post Type and sort by Tags
- Display Custom Taxonomy of custom post type
- Tags and Taxonomy links not working for Custom Post Types
- Attaching multiple custom taxonomies to one CPT?
- How to get the posts of a custom taxonomy term
- How can I rewrite URLs to pass taxonomy and post type values to the query?
- remove support for ‘Categories’ for a custom post type
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom taxonomy & post slug permalink
- WordPress custom post type Single.php?
- Child and grandchild taxonomy listings – 404
- Display custom taxonomy as dropdown list
- Automatically Add a Category to a Custom Post Type
- Detect if 1st, 2nd or 3rd level custom page?
- Custom Permalink Tag breaks Pagination
- Relationship between two taxonomies and a custom post type [closed]
- next_post_link on custom taxonomy
- Create Template for Custom Post Type same like for Page
- CPT UI change custom taxonomy url
- Show posts from two or more custom taxonomy terms
- Custom page sidebar using Template dropdown box
- How to list custom taxonomies in the back end
- How to get custom posts sub category link
- Top Level pages in wordpress giving 404, but child pages working fine
- Loop to display custom post type from a custom Taxonomy
- Is it possible to have “two” sets of tags?
- category list with cutom post count
- Custom post type and taxonomy cross registration [duplicate]
- How to create a template to show child terms of a MAIN taxonomy
- How do I add new post formats to twenty fourteen theme?
- If tag exists, then echo once
- Custom Post Type page template doesn’t show up
- Custom archive page for custom taxonomy and pagination issue
- Ordering by meta value not working
- Custom taxonomy, post type, and URL permalink structure
- Get all post under custom post type grouped by custom filed value in custom taxonomy
- Order custom post type by taxonomy
- Changing an item in drop down after 5 latest posts per taxonomy
- How to add a new column in custom post type list?
- Custom Post Type categories at edit post not hierarchical
- Loading a template for a URL pattern
- How to Fix WordPress 500 Internal server error due to custom post type
- Get custom post type where taxonomy..
- Connecting multiple post types? Or linking “News” posts with “Game” posts how?
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Sort by Custom Post Type (Multiple Loop)
- Costum post type with costum (sub)taxonomy
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Display a custom post type list by taxonomy term
- Custom taxonomy archive page not routing?
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Show custom category archive as front page and remove taxonomy slug from urls