You can use get_categories() function.
<?php
$cats = get_categories();
$count = 15; // Total Categorie
$linetotal=round($count/3); ?> // Part of Categorie
<div class="category_list">
<ul><?php
$totalcount = 1;
$totalpart = 1;
foreach($cats as $cat): ?>
<li><?php echo $cat->name; ?></li><?php
if($totalcount % $linetotal == 0 && $totalpart < 3) {
echo '</ul></div><div class="category_list"><ul>';
$totalpart++;
}
$totalcount++;
endforeach;?>
</ul>
</div>
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- WooCommerce: List All Categories
- Get rid of WordPress category, tag and author archives?
- How can I hide a category from Contributors in the edit/add new post screen?
- Filtering categories in the permalink structure
- Wrap Post count in a span
- wp_nav_menu not appearing for a couple pages
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Preventing index.php?category_name=something from redirecting
- How to get category id of current post?
- Trash bin for categories
- Categories’ hierarchy in URL
- Display one category in one page
- How to get next previous category in same taxonomy?
- Show children of top level category only
- is_archive() content being shown instead of is_category()
- Check is category parent or not from its ID
- Which php file lists all the post of a category
- How to query posts from specific authors and categories using WP_query?
- Add custom taxonomy under the category title
- Retrieve all posts within tag OR category?
- Include template before a loop
- How to customize tag and category post listings to show introductory content?
- List Terms in Category
- Include posts from feature category in pre_get_posts
- How Can I Display Categories Description
- Specified number of categoy posts not showing correctly
- Display Slug instead of Name
- Customized landingpages for categories
- Class active for Archive link – looped out
- Filtering multiple categories via the URL
- Get parrent category name
- Remove sub-menu item from admin menu
- Multiple categories with common subcategories
- Counter in loop in foreach
- How to limit number of attachments
- Show category name and new articles and display page numbers. What function to use
- Add child category to parent on post creation and save
- wp_list_categories in in nav_menu
- Sub category templates
- How to use an array of categories as a dropdown?
- ACF add custom fields to categories and display
- Custom taxonomy template for categories
- Create category post shortcode
- Undefined property: stdClass::$id when retriving term ID
- Question on using custom structures for categories
- Output the text before category
- Change div background acording to the selected category
- Why title_li =” not working
- Wrong category nice name is displayed on archive page
- Cannot filter categories by parent category
- Redirect year month day postname permalink structure to category postname structure
- Show all sub categories?
- Category nicename inside loop in wordpress
- Exclude all subcategories in the_category (post)
- Generating a feed of all but one category of posts
- Displaying another main nav menu for specific category
- Exclude categories from list (wp_list_categories)
- How to display the 5 latest post titles but allow only 1 in there of a specific category
- WordPress: Using the category slug get the category ID using mysql query
- How to add categories using mysql
- Posts made to category don’t show up (do show up on frontpage)
- Display all categories but only if they have posts in them that have a specific tag assigned
- How to fix select filter on category
- wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
- Add $args to wp_list_categories
- Show audio player only in specific post type category
- Check with Jquery if second level checkbox from categories are checked
- Regarding Tags And Categories
- How to show entries related to main category
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- How to get WooCommerce Product Categories and its children’s children?
- Get category from slug list
- Media Library Category Exclude Tree
- When category name and title are the same … WP will select archive.php instead of single.php
- Re-coding category-template.php to go to custom URL
- Category removal – Portfolio Category:
- How to display child-category PAGES on a category page
- How get all media from a posts category by db?
- Cant get unique_array() work on get_the_category() foreach loop
- Show One Level Category id
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Custom filters inside a specific category?
- how to Specifies an author / editor to edit one category only?
- $args Orderby The number
- Function to list posts from current post’s category fails in WP 3.8
- Multiple parent categories
- Formating content in category.php
- How to use Greek characters/letters in a query?
- Getting categories to change appropriately when using $cat = ‘ ‘;
- how to call the category of the post
- Display post content from category name using ajax
- why is the delete option missing from just one category?
- How to display the category featured images [closed]
- Echo Category In Loop
- Get all categories
- Show category post order ASC
- Custom EndPoint not working when strip child category in URL
- How to add custom prefix before category base for category page URL?