How to manage category order?

4.73K viewsGeneralcategory order
0

Hi,
I have a lot of categories. How can I manage the order they display and/or reorder them?
I have the popular “Category Order and Taxomony Terms Order” plugin installed, but it does not recognize AnsPress categories?
https://wordpress.org/plugins/taxonomy-terms-order/
Right now the categories only display in the order they where created…
With thanks, Scott

Answered question
0

Hello Scott,
AnsPress adds its own order by and order. To use your plugins order simply add this:

add_filter( 'ap_categories_shortcode_args', function( $args ){
    unset( $args['order'] );
    unset( $args['orderby'] );
     return $args;
})

Posted new comment

Hi Rahul,
Add it to where?
I tried to add it to my functions.php and I got a fatal error

You are viewing 1 out of 2 answers, click here to view all answers.