$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
- Conditional Statement custom post type category
- Custom Post Type With Categories
- using $wpdb to get custom post type with term
- Categories sorting
- Show posts from two or more custom taxonomy terms
- get_category_parents for custom post type taxonomy
- Displaying custom taxonomy in the admin list of a custom post type
- wp_list_categories() – current-cat class also inside posts?
- Which post does a taxonomy term belongs to?
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- Show a Category X’s custom post type on Category X archive page?
- Display post as term id
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- How do I display the taxonomy term alongside the post type post title?
- 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
- Filter CPT posts by one or more categories
- Getting categories of posts under a custom taxonomy
- Post count by month of taxonmy term
- Can’t remove front from permalinks for custom taxonomy category page
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How do I display the taxonomy for a custom post type in an array
- How to edit this code to get the categories in achieve page?
- Display Custom Taxonomy Alphabetically
- How do I require the specification of term in a custom post type and custom taxonomy?
- Custom Post, set object Taxonomy terms in plugin
- Hierarchy and access control for Custom Post Types (CPT)
- Get terms that contain posts that in turn belong to other terms?
- Best method to make posts searchable, sortable and filterable – custom field, tag or category?
- Custom while loop for hierarchical display of a taxonomy
- Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)
- Display taxonomy terms, child terms and posts in a template
- Use custom walker to add taxonomy terms to main nav menu
- browse by category and tags?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Conditional statement for if archive page has posts which contain certain taxonomies/categories/tags, show those terms
- Add term to custom post type on draft
- List of Posts and Categories
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Listing all term items alphabetically / sorting loop
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- How to get WordPress term attached to the Post?
- 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
- Category archive in with conjunction with custom post type is empty
- How to get only child terms from a custom taxonomy of current post type?
- How to add current custom taxonomy slug to body class
- Custom query – get_the_terms not work
- List Posts By Custom Taxonomy
- get_category_link() for custom post type does not include custom slug rewrite?
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Disable custom taxonomy on admin bar
- Why does my taxonomy have a category style div id?
- Targeting categories in custom fields
- Shared terms between taxonomies
- Listing all slugs?
- Get terms of a post but only if they’re also the child of a specific term
- category list with cutom post count
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- Get category if used in a custom post type
- Get taxonomy term by slug in post on archive page
- Custom Post Type Categories URL not displaying posts
- custom hierarchical taxonomy and custom post type list contains surplus posts
- How to display custom taxonomy term meta on custom post type
- 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
- Get the link of the first post of a custom taxonomy in a custom taxonomy list
- Urls in Custom Post Type work for Terms but not for its Taxonomies
- get_terms() parent, child and grandchild
- Get child categories of custom taxonomy category?
- Commas not displaying in implode
- does wp_insert_term link the term to a certain post ID?
- Custom Taxonomy Terms in Menu lead to which page?
- How can I get 3 different taxonomy type terms in a div class element?
- Custom Post Type Custom Archive Page Not Working
- List child categories from parent category on custom taxonomy page
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Grab all Custom Posts by multiple taxonomies and terms
- 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