get_categories()
fetches taxonomies of type ‘categories’ particularly http://core.trac.wordpress.org/browser/tags/3.6/wp-includes/category.php#L0,
to fetch custom taxonomy you should use get_terms() instead, here http://codex.wordpress.org/Function_Reference/get_terms
$terms = get_terms( 'partner-cat', 'orderby=count&hide_empty=0' );
$count = count($terms);
if ( $count > 0 ){
echo "<ul>";
foreach ( $terms as $term ) {
echo "<li>" . $term->name . "</li>";
}
echo "</ul>";
}
Make sure you specify the proper slug you registered for taxonomy and change WP_DEBUG to true in your config file to check for further errors, as you might be fetching the taxonomy before you are registering it and hence no results in that case you’d get an error.
can you paste your code for registering taxonomy?
Related Posts:
- Remove the category/taxonomy description field?
- Add ‘Description’ to taxonomy ‘Quick Edit’
- Add Thumbnail to wp_list_categories()
- Count argument in get_terms has no effect on ouput/doesn’t work
- Embed YouTube video on category description
- Display Taxonomy Description on edit-tags screen?
- How to display terms from a custom taxonomy in a hierarchy AND with custom html markup?
- List posts in a category grouped by other categories?
- Creating links to a page displaying posts from a particular category
- Make/create a category for every page
- How Can I List Categories by Date?
- Delete Term via edit-tags.php
- Is There a Difference Between Taxonomies and Categories?
- How to show a hierarchical terms list?
- Get Posts Under Custom Taxonomy
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- The Difference Between Hierarchical and Non-Hierarchical Taxonomies?
- How to perform unit testing on proposed patches in Trac?
- Attaching taxonomy data to post with wp_insert_post
- Need a simple but complete example of adding metabox to taxonomy
- How to get taxonomy term of the current page and populate queries in the template
- Can I add a Category Metabox to attachment?
- Can the default “post tags” taxonomy be renamed?
- Custom columns for taxonomy list table
- Custom Taxonomy WP_Query for All Terms in a Taxonomy?
- Custom taxonomy list page?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Check if a post is in any child category of a parent category
- How to add a default item to a custom taxonomy?
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Why does get_term() require taxonomy? Are term_ids not unique?
- How does Woocommerce store variation attributes, and how can they be retrieved per-variation? [closed]
- tax_query in get_posts() not working?
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_categories for custom post type with a specific custom taxonomy attached
- Different post sort order within different categories
- What is wp_insert_term “alias_of” arg for?
- Automatically Assign Parent Terms When A Child Term is Selected
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Creating “static” taxonomies to choose from, inside custom post type?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- get term by id without taxonomy
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Weird behaviour when adding terms/term_taxonomies programmatically
- How to organize and cache additional data associated with terms?
- Using pre_get_posts to set posts per page, how do I?
- get a specific taxonomy term name
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- wp_set_object_terms() Fails to Set Terms
- wp_set_object_terms() — prevent overwrite?
- Taxonomy terms sort by… Last name!
- List Hierarchical Term List with Count with Related Term
- How to list all categories and tags in a page?
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Is there a way to set singular/plural labels for taxonomy term names?
- WordPress – Creating multiple versions of the same single-customtype.php depending on selected taxonomy categories
- Better way to enforce category hierarchy in post_categories_metabox?
- get_terms() How many is TOO many?
- Exclude custom taxonomy from search results and archive pages
- Child Terms not Displaying on the Taxonomy Term Admin Screen
- get_terms with posts that have a different taxonomy with term x
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to display child term of current term’s parent taxonomy?
- How to make custom taxonomy check boxes like ‘Categories’
- List all taxonomy terms / Show links if posts are attached, else names
- List taxonomy terms as links
- check if tag exists in wp database
- Sorting custom taxonomy causes menus error
- How to overwrite a specific parameter in a core taxonomy?
- Create terms when registering taxonomy?
- Set a cookie in WordPress, using a select form and Jquery
- How to add terms to taxonomy with wp_insert_terms?
- How to update taxonomy custom field with wp_update_term()?
- How to create non-unique sub-category slugs?
- Get_term_by only returns one item from array
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- How to set a Preset category for custom post types?
- Can we have same term slug in different taxonomies?
- Is there any difference between post in child term and child & parent terms?
- How can you make permalink work for custom post type and taxonomy?
- Add additional data to a specific taxonomy term when used in a post
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Set default (auto) slug prefix for Tags
- How to get next previous category in same taxonomy?
- How to get a list of term names of the custom post type im currently on in single.php
- How to have “the most used tags” taxonomy always expanded?
- Get parent and first child taxonomy terms?
- Display only deepest category on a single post?
- How to add automatically keyword to taxonomies when a post published, and assign them to the post
- Display the number of published posts for each custom taxonomy term?
- Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
- Display Custom Taxonomy in Sidebar in Two Columns
- Get wordpress taxonomy archive and sort by year
- Search for tags