So, i used this script in the end, thanks to Pieter Goosen’s post Category Alphabet List Broken
$terms = get_terms('anime-on-going');
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
$term_list = [];
foreach ( $terms as $term ){
$first_letter = strtoupper($term->name[0]);
$term_list[$first_letter][] = $term;
}
unset($term);
echo '<ul class="my_term-archive">';
foreach ( $term_list as $key=>$value ) {
echo '<h2 class="term-letter">' . $key . '</h2>';
foreach ( $value as $term ) {
echo '<li><a href="' . get_term_link( $term ) . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '">' . $term->name . '</a></li>';
}
}
echo '</ul>';
}
Related Posts:
- visually sort ordering “custom post types” for end users
- Different post sort order within different categories
- Custom Table Column Sortable by Taxonomy Query
- Setting Custom Sort Order of Posts within a Category
- Plugin for custom sort order for categories?
- Sort posts by tags in category pages
- How do I allow users to sort posts? [duplicate]
- How to sort posts by last name (2nd word) on ONE category only?
- Sorting results from JSON-API on custom fields
- How can I custom order the results from wp_list_categories?
- Sort users in get_users() in custom order
- How to create a category and sub-category sorted blogroll with all posts?
- Sort category page with custom field
- Archive listing of posts by publish year (multiple years)
- Sorting Posts by custom field
- Sort by custom field value
- How to sort posts with the first 2 or 3 by latest, and the rest is random?
- Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- Adding Sorting to Website?
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Sorting by tag or category
- get_terms orderby name as numbers
- Sorting get_post_ancestors array
- wordpress custom_meta ordering of timestamps
- Filter posts under multiple categories?
- Multi-level ordering in WordPress
- Sorting for custom column in WordPress admin post table
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- Vertical alphabetically post columns
- Advanced custom fields sort repeater by date
- Displaying posts sorting by a custom criterion
- Sorting custom post type by usermeta
- Categories sorting
- Sort posts by meta key that is serialised with other meta keys
- orderby field – list of available options?
- Show Primary Category first when I display post categories
- How to redefine the sorting of product categories by menu_order?
- User Query sort on custom field then name
- Sorting category products not working
- Custom post type, organized by categories
- WP Query sort by meta value
- WordPress posts page for customer filtering and sorting along with category filter
- Best Practices for a Completely Customizable Homepage – without plugins
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Custom taxonomy/category order
- Sorting posts by custom field value
- wp e-commerce group product by category [closed]
- How do I create a sort capability by Title, Category, Author, Date?
- How to let users choose posts order in categories?
- How to avoid duplicating same meta_value?
- Count the posts number for every category
- Sorting/Filter posts from front-end in WordPress blog
- ‘sort_column’ => ‘menu_order’ not working
- Sort scheduled posts in ascending order by default
- How to sort by number
- Sort by last word in title
- sort items by randomness
- inner foreach loop sorting
- Sortby parameter to sort users
- Update meta_key value for a page
- Add multiple orderby with pre get posts
- Natural sort / ordering wp_dropdown_categories
- How to list post as buch of category, and all of them
- Sort my event calendar by date
- Table Sorter sort by span title?
- Sort categories by custom field in WordPress admin
- make two custom columns sortables
- How to display remaining post ( in post__in ) if posts are less then post per page?
- How to sort post category using its Description
- ACF pro: Group teaser by datepicker year and display custom sub fields [closed]
- Sorting in WP_List_Table class
- Woocommerce Category Sort Dropdown
- Sort an array with an ACF meta key
- How to sort custom post’s category by id from the theme’s function.php?
- get_terms sort order with child categories of varying depth
- display wordpress user who published a pending post of another user
- Static front page and orderby
- Advanced sorting of content in wordpress [closed]
- Sort posts by first content letter
- Grouping posts starting with same letter
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- List CPT by menu_order with children right after parent
- Sort categories by meta value
- Multidimensional array sort?
- How can users sort multiple pages?
- How can I sort posts ascending by post title for a specific post type, but on a category archive template?
- category & sub category order issues in wordpress
- Test if a Category contains certain Custom Post Types
- How do i Sort my Posts
- How to resort my id in wordpress?
- Sort Posts Alphabetically Based on Specific Category (Divi)
- Sort Category Archive pages and place sticky posts first
- How to sort posts alphabetically based on a specific parent category
- Sort Featured Content by Order instead of ID
- how to display all categories in wordpress?
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- Get Posts Under Custom Taxonomy
- Can the Next/Prev Post links be ordered by menu order or by a meta key?