this should do it:
$categories = get_categories();
foreach( $categories as $category ) {
echo '<input type="checkbox" name=" . $category->slug . "" value="' . $category->term_id . '" /> ' . $category->name . '<br />' . "\n";
}
and you can change/order the list by feeding arguments to get_categories()
:
http://codex.wordpress.org/Function_Reference/get_categories
Related Posts:
- Listing all posts from current category on page
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Show post only if match all categories
- Dropdown category filter
- Resort get_categories
- How to use an array of categories as a dropdown?
- Create menu locations for each category in wordpress
- Use premade array as categories in wp_query?
- Array: What is this value based on?
- How to get an array with all categories and corresponding names?
- Link To Child Category For A Post
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Need to echo category id in multi-dimensional array
- Getting Category Children
- I need to exclude from a query a category and a few custom taxonomies
- Cant get unique_array() work on get_the_category() foreach loop
- Matching usermeta at registration to categories of content
- How to change category id on get_posts array
- How to define category ID in an array?
- Order Categories by Character Count
- how do I exclude a category foreach
- How to display only 3 main categories, separated by commas, since they are marked in the post?
- is_category() function
- Create terms when registering taxonomy?
- Add category to custom post type automatically, using category slug
- How do I edit pre_get_post for the category the user is currently in?
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Link each category to last post
- Auto add pages to category menu
- Removing the number in a category slug
- Get term by slug in Gutenberg
- Custom Stylings for category pages
- Show only first children level of current category?
- Problem displaying one post from each category
- How do I automatically put categories and their descriptions on a WP Page?
- Taxonomy filter all children
- Bulk category update is not updating
- RSS/XML of all Categories and/or Tags
- URL path for wordpress categories
- How do I get rid of “category” from my URL structure?
- Checkboxes in the category list?
- How to display post categories within the Latest Posts block?
- Have different permalinks based on category
- How do I output all category with custom field?
- Add /category/ to an author archive page
- Remove subcategory and category with some rules from permalink
- How can I edit the ‘Most Used’ tab in the categories meta-box to show another custom taxonomy?
- How to remove specific categories from posts?
- Does “show_option_all” in wp_list_categories do anything?
- redirecting from a general category page to another specific one
- how to get full category path including parent and subcategories
- Categories are not listing their respective products
- Combine results of multiple WP_Query to resemble single WP_Query
- Two columns in homepage each with one category
- Pagination on category.php and tag.php not working
- WordPress link to post links to category (loop)
- How do I attach a page to a category similar to how we attach media to a post?
- Display all product tags associated with a specific product category
- How replace individual elements in the RSS feed with a single string
- how to nest specific category thumbnails inside different containers
- Is there any way to check which wordpress categories was created by which user?
- Adding a block with query in homepage
- what file I need to create to work date archive links?
- multiple values in an array for category__and does not work with WP_Query
- Category view with contents of [gallery]s shown
- Using multiple variables to assign categories to an array
- How can I include custom category and tag base in template files?
- query_post problem
- Add properties to term object
- Display all Categories
- custom wp_list_categories in single.php
- How to target all woocommerce categories that don’t have any subcategories in them?
- Is this process OK to replace URL structure?
- echo $category[0]-> cat_name; shows only one category name
- How can i echo next and previous custom category from a Taxonomy
- Change post category within pre_get_posts
- How to check a category checkbox using JavaScript
- Ajax Category add doesn’t update the list table custom column
- Need help to structure our a complex hierarchy
- how to get postmeta info based on multiple categories?
- create post with main category and other categories from admin panel
- How Can Hide Define Category in Post Contents?
- How to auto update post title and slug with category name when post status is updated
- get_posts – require all categories
- 404 error when i try to search by category or by tag
- Add advertising box to a specific category page
- How do you add Author and date Published on Category Pages?
- hierarchical taxonomy in permalinks? using same slug
- WordPress Numeric Pagination with Query String [duplicate]
- Twenty Eleven Theme [duplicate]
- display certain category on custom template page
- Get post by Category in custom template
- Ajax call activate after submit in edit-tags.php page
- List products from current category
- Assign a category by user and customize the edit-tags.php?taxonomy=category page
- comments_number fails to print
- How to show posts of a specific category
- How to show child category name & post from it’s parent [closed]
- Open everything in new tab
- CPT Custom post type Tags & Categories not showing for ‘Editor’ user in editor