Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1012134

    I have been working on re-categorizing my products and have had to add a number of sub-categories.to a parent. My end result is a list of sub-categories that is not in alphabetical order when reviewed within WordPress. They display properly from the widget drop down menu. A large group of them is in order. And there is another section of them that is in order also. I figured out how to slide a category to another location on the page displayed, but if I have to move them to correct it, then I also need to move them to other pages. I haven’t been able to figure out how to do that one. How to I get these to display in order everywhere? Thanks.

    • This topic was modified 6 years, 3 months ago by TCTM.
    #1012713

    Hey Kathy,

    You can try to install a plugin like: https://wordpress.org/plugins/taxonomy-terms-order/ to change the category order manually via drag’n’drop on the wordpress admin page.

    Best regards,
    Peter

    #1013180

    Peter,
    I tried your recommendation of installing the plugin Taxonomy Terms Order. It was easy to work with, but it only affected the display to the end user. While that is important, I need for the categories and sub-categories to be listed alphabetically on the backend as well. It is harder to manage when you have a lot of sub-categories and they are not in order. I am able to drag and rearrange within a single, but the category that has the worst problem spans at least 4 pages. Is there anything I can do within Enfold to fix that? Thanks.

    #1013263

    Hi,
    Enfold does not change the default order of the categories but it’s a wordpress core issue. You could i.e. try the code snippet from here: https://wordpress.stackexchange.com/questions/53094/how-to-change-the-categories-order-in-the-admin-dashboard (add it to the child theme functions.php):

    
    add_filter( 'get_terms_args', 'wpse_53094_sort_get_terms_args', 10, 2 );
    function wpse_53094_sort_get_terms_args( $args, $taxonomies ) 
    {
        global $pagenow;
        if( !is_admin() || ('post.php' != $pagenow && 'post-new.php' != $pagenow) ) 
            return $args;
    
        $args['orderby'] = 'name';
        $args['order'] = 'ASC';
    
        return $args;
    }
    

    Best regards,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.