FYI, the Portfolio Category in your website is called Custom Taxonomy.
You will need a function called get_terms()
which takes two params are the taxonomy you will get and an array. It will return an array of terms. Just surf the codex about that. After get the terms, you can use a foreach
loop to display your result.
Example code:
$terms = get_terms( 'portfilio_category', array(
'hide_empty' => false
));
foreach ($terms as $term) {
echo $term->name;
}
Related Posts:
- How to build a complex page structure
- Template tags to display custom post type posts in category template?
- Multiple Content Block
- Filter categories of posts with checkboxes
- Insert HTML inside link in a walker
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- What’s the difference between same wp functions get_posts(); functions in different form?
- Show category ID on custom post type
- PHP variable not regenerating when publishing multiple posts at the same time
- Custom post types and category archive
- Redirect to another page using contact form 7? [closed]
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Archieve.php not loading for custom post type
- Assign category a default post type
- Navigate posts with different post type that are in the same categories
- Showing custom post type categories in the menu
- Include custom post type custom taxonomies in Categories widget
- Custom post type’s posts are not showing anywere but in xml sitemap
- Custom meta box in custom post type not working
- How to divide Subcategories into pages of parent category wordpress
- Custom post category name showing empty
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Problem with multi checkboxes value in metabox?
- Create dynamic logo carousel without using any plugin
- How to sort custom post’s category by id from the theme’s function.php?
- Help with Multi Level Category Archive Page
- can’t see categories in appearance-menu-categories
- Query custom post type and showing its content
- Having some trouble properly displaying Custom Post Types in templates
- Category names on CPT archive pages [closed]
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Show custom post type on post category page doesn’t work / breaks navigation
- How to get the proper category in permalink with custom post type assigned to multiple categories
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Why is archive.php used for my page
- How To Enable Block Editor (Gutenberg) for Existing Post Type via functions.php
- Possible for Category Base and Custom post Type to share the same slug/permalink?
- How to add extra input fields to CPT’s comment form?
- GravityForm: Populate Dropdown with custom post type [closed]
- Return array of categories to php function for current post
- Multiple custom post type loops in category.php
- Loading all files within a directory
- Querying Term Posts in Loop
- Modifying Custom Post Type after registration (will it affect content?)
- Custom Post Types relationships
- How to create new category for custom post type?
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- Create a post in custom post type using field in registration form after users submit form
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- ACF simple text field value not showing
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Add category in post type dynamically
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Made Custom Post Types, but single.php not working
- Copy custom field value to post title
- Is it possible to place custom post type files inside a folder in theme directory?
- Use post as category
- How to get the post type from a category id?
- Displaying a custom post types custom taxonomy value?
- How to add custom post types to normal category pages
- Pagination on category page with custom post types
- right_now_content_table_end function not working?
- Custom Post Types and independent Categories – complex Taxonomy
- WooCommerce product search titles only
- Call custom post type by category
- Add category attribute to custom shortcode
- Notice: Undefined index: suppress_filters
- Use regular category with custom post types
- Custom Taxonomy Permalinks Redirection
- Add custom column in custom post type edit page
- Should I use custom taxonomy or custom post type
- How to detect filter in URL in Category page?
- Set menu active state for custom posttype and category, given custom taxonomy term
- How to show CPTs in term archive
- How to change post featured image using a custom field of category?
- wp_insert_post generates endless posts
- Remove standard meta boxes from custom taxonomy
- CPT Archive with core Category
- Group posts by custom post type
- I did group my search results by post type, but how can i give each of them its own order?
- Display all posts in main category and 1 subcategory
- Replace li Items with divs with classes
- Dequeue scripts and styles only for specific custom post type
- showing custom post types of a certain category only
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Function to display custom post type on front page makes menu items dissapear
- Get posts from a custom post type by child categories of a parent category
- custom post type not showing in menu
- Linking to the most recent post in a Custom Post Type
- Custom Post Type Archive Page Filtering
- Getting posts under the custom post type ui category
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- How to customize a permalink (URL) structure?
- get_posts() with custom post type does not work outside page.php
- Posts from all the categories are being displayed instead of particular category