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 set a fall back template for a custom post type in a plugin?
- how do I group content in magazine-style ‘issues’?
- Use standard WordPress categories with a CPT
- Custom Search form not working in localhost
- Get the post_type of current taxonomy or category page
- Categories and Tags not working!
- Allow Users Access to Custom Post Type Only
- How to get Custom Post ID by adding filter to child theme’s function
- How do I create an archive page for standard posts?
- get_categories() for only CPT
- category.php displays ALL posts instead of just those with the current category
- custom taxonomy archive by year
- Remove parent from custom post type
- Display Next/Prev when looping Custom post-types archive?
- When ‘is_post_type_archive()’ return true?
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Create a post in custom post type using field in registration form after users submit form
- right_now_content_table_end function not working?
- How to detect filter in URL in Category page?
- showing custom post types of a certain category only
- Get posts from a custom post type by child categories of a parent category
- Query & Order posts by custom fields
- Show a Category X’s custom post type on Category X archive page?
- custom taxonamy and post type
- How to target a specific custom post type post and its all children and grandchildren?
- Getting categories of posts under a custom taxonomy
- ACF field key/value to show on taxonomy list
- Re-registering a custom post type not working (not showing up)
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Add term to custom post type on draft
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Custom templates for a specific category
- How to retrieve category of a post in have_post loop?
- Get parent category id from child category page for custom taxonomy
- Change Slug of a Custom Post Type
- Show current user posts in custom post type query
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom post type in Custom widget – $listItem
- Custom Post Type with modified permalink structure results in 404
- Custom post not appearing under custom taxonomy category
- If custom category search then page 2 not found
- Show the categories the current post has
- Conflict in function to allow single post template based on category
- Custom post type data not displaying If I select the category from the dropdonw
- Pagination not working in custom post type. Help
- How to use posts as tabs in a custom page?
- Get posts in custom post type categories
- Send mail to author when custom post type is saved
- wordpress does not see the correct custom taxonomy hierarchy
- Counting the number of post without custom post type
- is using “require_once” in wordpress theme affect the speed ???
- Custom Template for CPT Categories
- Featured image in custom post is being disabled
- Custom Catagory not found
- Page to show custom posts and one category
- Function that get ACF fields value before saving
- How can I list custom post by custom category?
- Use only selected regular categories for a Custom post form
- Create custom post order (with custom post type meta)
- Bulk remove category from custom post type?
- Single page for Custom Post Type not found
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Default WordPress Query for a Specific Custom Post Type URL