• Hi there

    I have a taxonomy with 70 entries. When creating a post and entering the first two letters of the value I am looking for, a drop-down list gets populated with “matching values”. I expected this list to be in alphabetical order but it’s not.

    I cannot be the first on e running into this “issue”… ??
    Where and how can I fix this?

    Thanks for your help.

    • This topic was modified 5 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • I think the default is “no sort”, since there are plugins that help you sort your taxonomy terms.
    https://www.ads-software.com/plugins/search/term+sort/

    Thread Starter mkk84

    (@mkk84)

    I think, I have tried almost all of them during the past days! None of them does what I am looking for; and this cannot be only my problem!
    For instance, ther term “town” holds 57 differnt names. When I trype “St” I get a list of suggestions and this list is not sorted.

    I tried “I Order Terms”:
    After a successful installation, I added the following code to my “functions.php”:

    function custom_i_order_terms_taxonomies($taxonomies) {
        $taxonomies = array_merge($taxonomies, array('taxonomy', 'category', 'town'));
        return $taxonomies;
    }
    add_filter('i_order_terms_taxonomies', 'custom_i_order_terms_taxonomies');

    Unfortunately, the list of suggestions remains unsorted…

    Thread Starter mkk84

    (@mkk84)

    Nobody out there able to help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Taxonomy not sorted’ is closed to new replies.