$index = 0;
$terms = get_terms('marke');
$range = array_merge(range(0, 9), range('A', 'Z'));
echo '<ul>';
foreach ($terms as $term) {
if(ord($range[$index]) <= ord(strtoupper(substr($term->name, 0, 1)))) {
while($range[$index] != strtoupper(substr($term->name, 0, 1))) {
echo '<li>'. $range[$index] . '</li>';
$index++;
}
$index = strtoupper(substr($term->name, 0, 1));
echo "<li><a href="".get_term_link($term)."" />{$range[$index]}</a></li>";
$index++;
}
}
Related Posts:
- Custom Post Type Archive Page Filtering
- Allow user to set custom order to a list of custom taxonomies?
- How to get custom posts sub category link
- Get parent category id from child category page for custom taxonomy
- How to Display Posts From Category Within a Custom Taxonomy?
- The Difference Between Categories and Tags and Taxonomies and Terms
- Get terms for a specfic post from multiple taxonomies in custom post type
- Retrieve Custom Taxonomies with Description and Slug
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- How to display custom taxonomy term specific post?
- Get a list of categories ids
- Exclude a category from WP_Query
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- How to list all categories and tags in a page?
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- Retrieve single term slug
- remove support for ‘Categories’ for a custom post type
- How can I add programmatically custom taxonomy terms to a custom type post when saving posts?
- post count is wrong when using same taxonomy for 2 different CPT
- Custom Post Type Archive Template
- Filter get_categories() for taxonomy term in WordPress
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Sort the main query in subcategories/terms?
- Get list of terms of current taxonomy archive for another taxonomy
- Dynamically create/remove terms in taxonomy when custom post type is published/trashed
- get_terms won’t display product_cat or any other custom taxonomies when specified
- How to get the first term for the current taxonomy?
- Display Custom Category (taxonomy) Name in Custom Post Type
- How to get category image custom post type taxonomy in wordpress?
- Show Post Count of a Category
- Output the content of a term organised by each of the CPT?
- How to filter the taxonomy terms based on another taxonomy term
- Combining custom post type and post category
- Insert HTML inside link in a walker
- get_the_terms return only last term
- Set menu active state for custom posttype and category, given custom taxonomy term
- Display all posts in main category and 1 subcategory
- How do I display tags for a custom post type single page?
- Show posts from two or more custom taxonomy terms
- wp_list_categories() – current-cat class also inside posts?
- How to display custom taxonomies with links in filter menu?
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Hide parent categories when clicked, and show it’s childs
- Limit amount of posts made within a custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- Get terms that contain posts that in turn belong to other terms?
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Query posts with double taxonomy
- WP the_posts() on single-cars.php get category link
- Adding predefined terms to a taxonomy
- in_category for custom post types
- Custom query – get_the_terms not work
- get_category_link() for custom post type does not include custom slug rewrite?
- Targeting categories in custom fields
- Listing all slugs?
- category list with cutom post count
- Get category if used in a custom post type
- custom hierarchical taxonomy and custom post type list contains surplus posts
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- how to count the current posts terms
- Custom post type categories gives 404 error
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- Custom Taxonomy Terms in Menu lead to which page?
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Can’t pull posts of a Custom Post Type based on the custom taxonomy of the CPT
- Add custom post type taxonomy tag to article class
- Custom Taxonomy dont save in a frontend form for post a custom post
- Add filter to Admin list for all custom post types by their custom taxonomies
- Custom post type specific category box
- Custom Taxonomy Taxonomies of Same Name point to first created URL
- Custom taxonomy not saving correctly
- Advanced archive url structure (category, tag and date)
- Taxonomy terms with the same name are updated between separate custom post types
- Add a class to a div if custom post type has specific terms?
- How to show related posts of category on post within custom posttype
- Return multiples taxonomies with wp_get_object_terms
- Custom taxonomy terms hierarchical navigation
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Create custom post type categories
- How to manage a dynamic multi-level page hierearchy system?
- Categories manage
- Saving Child Terms on front end not setting parent
- Help with Travel Guide Setup
- order taxonomy alphabetical
- Help with Multi Level Category Archive Page
- WordPress get all post with like in terms [duplicate]
- Get list of CPT posts in *current* post’s taxonomy term
- How to retrieve the permalink for a specific (custom) term?
- Exclude Custom Post Type from shared Custom Taxonomy
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Trying to create hierarchy between 3-4 custom post types
- taxonomy terms array not working
- Display a custom post type list by taxonomy term
- Return Custom Post Type Categories
- get_the_term_list() wanting to loop through the returned values
- Highlight specific menu item when custom post is page
- How to add categories to a custom post type using wp_insert_post($new_post);