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
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- The Difference Between Hierarchical and Non-Hierarchical Taxonomies?
- Attaching taxonomy data to post with wp_insert_post
- Custom taxonomy list page?
- tax_query in get_posts() not working?
- What is wp_insert_term “alias_of” arg for?
- List Hierarchical Term List with Count with Related Term
- How can I select a primary category?
- Is there a way to set singular/plural labels for taxonomy term names?
- List taxonomy terms as links
- Can we have same term slug in different taxonomies?
- Add additional data to a specific taxonomy term when used in a post
- How to get a list of term names of the custom post type im currently on in single.php
- Display the number of published posts for each custom taxonomy term?
- Get wordpress taxonomy archive and sort by year
- Search for tags
- Display Post by taxonomy and taxonomy child if exist
- Missing term_id and term_taxonomy_id when adding a term using wp_insert_term() function
- Custom post type taxonomy template
- functions to create term and child terms
- WordPress REST get all items without a taxonomy assigned
- Display name of the last child category
- How do I get the current tag out of a taxonomy?
- If search matches taxonomy
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Custom Field as Custom Taxonomy?
- Modify the query method when adding category filtering function to the custom post list
- need to get postthumnails from a post whithin a category custom post type
- Individual post. Meta_key, taxonomy or post status for separation?
- Taxonomy archive page WP_Query does not return get_the_permalink() or get_permalink() value
- How to show taxonomy image instead of taxonomy name on a list
- benefits of the table ‘wp_term_taxonomy’
- How to save a multiple checkbox array into a non-hierarchical taxonomy
- Category title output before opening title tag
- `get_terms()` with `child_of` and `childless` combined
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- Add text to the end of each list item in wp_list_categories
- Trying to add taxonomy to get_categories() but it’s not working. How to fix this?
- echo term name outside the loop, using term slug
- What are these undocumented arguments for register_taxonomy?
- Need help deciding on a taxonomy
- Dynamic filtering of posts with custom taxonomies
- Sorting tags by name
- Get Posts by Category, Tag , and CPT Taxonomy
- How to echo woocommerce category name
- How to get terms from a custom taxonomies after WordPress 4.5.0
- Search Media by taxonomy
- Get Taxonomy name from “registered_taxonomy” hook
- Get posts of a custom post type from category from taxonomy?
- In two-category searches, where does WordPress save the title of the 2nd category?
- Change categories count to include media attachments
- How to get selected taxonomy or category ID if using custom walker?
- Show only first child in dropdown
- Custom Post Type + Custom Taxonomy = Archive Listing Page Problems
- Taxonomy term archive default loop returns 1 record instead of 8
- Custom post type, taxonomy and admin bar
- Categories from front-end, checkbox selection doesn’t work
- Related terms – Terms that feature in post of current term
- Select query with two and two related taxonomies
- Taxonomy Dropdown Question
- Displaying posts of given category
- Customize menu link for taxonomy in WP menu
- How To Query For An Empty Taxonomy Field
- Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)
- Custom post type archive page filters
- Show subChild categories
- WordPress 5.4 and higher: Filter posts by category 1 AND category 2 in API requests
- get taxonomies from terms
- WordPress Portofolio Conditional Templating – functions php
- Get WooCommerce product category list in functions.php
- Add specific content to a taxonomy results page
- Set the limit of taxonomy per page
- Same page for startpage and archive?
- how to print post tags [duplicate]
- Filtering posts by taxonomy and meta_value
- What to do with shared terms splitting in WordPress 4.2?
- How to get a query odered by N of matching taxonomies?
- category_name not working in WP_Query
- How can I set up the URL for a category archive for a custom post type?
- multiple taxonomies in wp_list_categories’ $args
- list taxonomy based on taxonomy
- category & sub category order issues in wordpress
- Taxonomy Category category.php not working
- How to orderby Taxonomy Term in a WP Query
- Add custom fields to Woocommerce Category Page
- Using autocomplete with post_tag taxonomy on attachments
- How to make /category/ URL load properly instead of 404 error?