you can try below code
$term = get_term( get_the_ID(), 'portfolio_category');
$slug = $term->slug;
echo $slug;
Related Posts:
- Get posts from sites in Multisite?
- How to create a custom sort for WordPress categories
- How to add the category ID to admin page
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Category Archive
- WordPress remove separator from last item in wp_list_categories
- Filter categories using tags
- Sticky posts on home page, search, tag and archives without plugin
- Need help adding custom field to category
- Show Post from parent category (custom taxonomy) ONLY!
- How to display a list of categories
- Number of posts in page – set per category and exclude sidebar
- Create single.php for specific category by category id
- is_category in pre_get_posts results in php notices
- Use get_term_children to get the sub category of a parent category for the current post
- How to make all posts in a category “unsticky”?
- How do I get the total number of categories in a list of search results?
- Update wordpress post terms programatically
- How to stop wordpress from showing the selected category on top of others in the category selection?
- advanced custom field Show field in special categry page [closed]
- Display products for a category, sorted by post_excerpt
- Creating archive pages for children categories
- “NOT ONLY IN” taxonomy query operator?
- Exclude Child Categories Using wp_list_categories
- How to remove the “+Add Category” button from the Category metabox?
- How do I get a list of all categories that a given user has written blog posts for?
- Display the featured image from the last post
- Arrange posts by date in front page
- “Categories” on my front page [closed]
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- How to loop only categories without posts (+ show category featured image with acf) [closed]
- How can I create a Category Index page that lists all categories?
- Add “page-a” slug to category link if user visit category link from “page-a”
- create a page which displays a list of categories title+ short description?
- Changing permalink from /postname/ to category/postname/
- select parent category first then child
- Scheduling update post daily
- Retrieving category’s color with get_term_meta
- How to exclude children categories of parent category
- Assign category from custom field on post creation and update
- Sticky posts not working when a specific category is set
- I want to display the all the posts that are inside a certain subcategory
- Custom category URL rewriting
- Get Number of total Parent Categories for Custom Taxonomy
- How to change how many list item show in category generated by file edit-tags.php
- Category template with pagination returns 404 on next pages
- Display custom taxonomy attached to the post on post single page
- How to display numbered pages in a category
- How can I add an “ALL CATEGORIES” entry in wp_dropdown_categories?
- Ive got a term (get_term_by) but now I want to filter it by a category it is in?
- Get and show all of the available categories
- how to remove the default title of Categories widget
- Using a rich text editor for category description?
- How to put page numbers with the next/previous on a post/category list?
- Overriding default calendar to show posts from a category
- Categories will only display links to posts
- Adding category dropdown list to theme options page
- How to get posts by category at /%category%/ url?
- Echo text using is_tag
- Group search results by category
- Custom row actions on a specific category
- How to not display a category post on blog page?
- WordPress monthly archive category specific
- Show multiple categories in query using redux framework variable
- Add multiple orderby with pre get posts
- new WP_Query issues
- Is custom menu name and category name linked in wordpress?
- Displaying posts of given category
- Location Based Permalink
- How to display a block only for a certain category page
- Ordering terms whilst in loop
- Get multiple category names from permalink
- How to remove an item from a custom Walker_Nav_Menu
- Dynamically display sub-categories on primary menu without adding them
- Pass WordPress variable to the next page
- display number of posts by category Shortcode
- Displaying only selected categories
- get_the_category vs wp_get_post_categories
- How to get get_categories()’s ‘hide_empty’ argument to work with global year var in the archive template?
- Getting a sub category based on a category name
- How to display only sticky posts on category pages?
- I have many different products on my website how can I get them to display under specific categories?
- Help with SQL query, how to add taxonomie terms with value stored in options?
- /blog/ permalink prefix causes category pages to 404
- WordPress Shop and restricting products and categories for some users/groups
- Pass list of categories to JS
- WP url to get rss with full text of post
- Display Referring Category on single post?
- Conditional statements based on custom meta value in category archives
- Placement of categories
- Paginating a list of all posts collected by category titles
- Display deepest post category, when post have multiple categories
- Paginate WordPress Category Pages
- Get a list of post titles and links from yootheme master theme
- Customize category query in widget
- Page permalink rewrite
- Broken category styling
- Excluding cateory not working on my site. how to solve this? [closed]
- Get all first images of posts in same category
- Woocommerce Force the category choice before creating new product? [duplicate]
- Function to reference post meta in place of category Woocommerce