get_terms
just returns an array of terms, it doesn’t generate output. You have to do something with that array to see the results-
$categories = get_terms( "category" );
echo "<ul>";
foreach ( $categories as $category ) {
echo "<li>" . $category->name . "</li>";
}
echo "</ul>";
See the other examples on the Codex page.
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Control term order on a per-post basis
- How can I select a primary category?
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display empty taxonomy terms with get_terms()
- List Terms in Category
- How can i insert term in a specific language of Polylang?
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Display Posts Loop for each parent and for each Child
- Is There a Difference Between Taxonomies and Categories?
- Get posts under a category with SQL
- Display custom taxonomy attached to the post on post single page
- Display sibling categories on category page
- Combining these queries? (Same taxonomy term + same category as post)
- Get WooCommerce product category list in functions.php
- outputting taxonomy hierarchy
- Display List of Categories Within a Custom Taxonomy
- get_adjacent_post_link excluded_terms ignored
- Why is my post categories not displaying?
- Problem importing categories and sub-categories
- Taxonomy term RestApi data 10 rows limitions
- hide_empty property not working when using get_terms
- get_categories for custom post type with a specific custom taxonomy attached
- Order get_terms() By Custom Field
- Could not insert term into the database
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I get category ID by category name?
- wp_update_nav_menu_item() to insert categories
- How to get next previous category in same taxonomy?
- Wrap a chosen category name with div
- Use get_term_children to get the sub category of a parent category for the current post
- Count argument in get_terms has no effect on ouput/doesn’t work
- Update wordpress post terms programatically
- List all custom post type posts from a given category?
- Get a list of Terms for a specific category
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- Add custom taxonomy under the category title
- Display name of the last child category
- How do I get a list of all categories that a given user has written blog posts for?
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Set post categories to include parents when setting child category
- Display Slug instead of Name
- Inserting Category programmatically
- Show Available Taxonomy List with Current Category
- Exclude a category from the_category in the single post page
- Filtering multiple categories via the URL
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- wp_dropdown_categories not showing option as selected
- Question on using custom structures for categories
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Count tags for a specific category
- List just subcategory and products of active category page in Woocommerce
- WP 4.7 in_category change?
- Illegal string offset ‘taxonomy’ in
- More efficient way to list posts by category [duplicate]
- Exclude categories by ID
- Let user select their own category
- Using in ‘category_name’ in ‘$query->set();’?
- How to store category and tags separatly on wordpress?
- Setting selected term_id with wp_dropdown_categories?
- creating categories programmatically
- Post to inherit custom category background image from parent
- wp_delete_term or wp_delete_category?
- Update custom category fields front-end
- sidebar troubles, taxonomy trouble
- WP-CLI Add category as menu item main-menu
- Category post count is not correct
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- How do I edit the terms output args or array data?
- How can i change sort category view starting from child then parent, not alphabetically
- Can’t display posts by filtering categories using isotope.js
- How to remove parent category from child category url using wordpress rewrite rule?
- Bulk assign posts to a category using SQL (MySQL)
- How to modify custom category field from front end?
- Confused about category.php template – not working
- Bulk Change WordPress category Slug
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- show only terms from parent category
- How get all media from a posts category by db?
- Getting a sub category based on a category name
- How to Manage and link certain custom taxonomy?
- Display Taxonomies in loop with template args
- Grouping parent categories into sections
- Match two taxonomies to display a specific content
- Display only the latest post
- Return selected categories only in custom page meta box?
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Display only one level subcategory in wordpress
- Converting Categories (with ACF fields) to custom taxonomies
- get_category_children/ the new get_term_children not work
- List the category tree of all the product_cat categories