WordPress.org

Ready to get started?Download WordPress

Forums

Make taxonomy terms appear in the order they were made (2 posts)

  1. vk011
    Member
    Posted 6 months ago #

    IS it possible to make taxonomy terms appear in the order they were made, in the backend?

    They keep appearing in alphabetical order. I tried using sort but it doesn't seem to be working.

    This is my code for creating custom taxonomies:

    $taxonomies['size'] = array(
                'hierarchical' => true,
                'query_var' => 'size',
                'sort' => true,
                'rewrite' => array(
                    'slug' => 'size',
                ),
                'labels' => array(
                    'name' => 'Size',
                    'singular_name' => 'Size',
                    'update_item' => 'Update Color',
                    'edit_item' => 'Edit Size',
                    'add_new_item' => 'Add Size',
                    'new_item_name' => 'Add New Size',
                    'all_items' => 'All Sizes',
                    'search_items' => 'Search Sizes',
                    'popular_items' => 'Popular Sizes',
                    'popular_items_with_comments' => 'Separate sizes with commas',
                    'add_or_remove_items' => 'Add or remove sizes',
                    'choose_from_most_used' => 'Choose from most used sizes'
                )
            );
  2. JumboClicks
    Member
    Posted 6 months ago #

    how is wp suppose to know which order they were made? heh
    did you assign them a timestamp?

    its gonna be alpha or reverse alpha maybe

Reply

You must log in to post.

About this Topic