enter image description here

I am creating a WooCommerce store with a very big nested menu structure. Is there a way to stop my product categories from paginating?

I need them to all show in one big list so that I can use Ctrl+F to find them quickly. That "Search" next to "View All" isn't working.

Any help is appreciated.

  • 1
    @LoicTheAztec your code worked! Thank you very much. However the pagination is still showing but the code is doing what I needed done. – Charis The Programmer May 24 '19 at 15:48
  • Happy it wordked, as I didn't really test my code (what I mostly never do). – LoicTheAztec May 24 '19 at 15:52

Based on "Remove Pagination in Appearance -> Menus -> Categories" answer thread for WordPress categories, you will adapt the answer code to WooCommerce Product Categories.

The taxonomy of WooCommerce Product category is product_cat.

Is also better to target admin nav menus only.

Try the following (untested):

add_filter( 'get_terms_args', 'admin_nav_menu_show_all_product_categories', 10, 2);
function admin_nav_menu_show_all_product_categories( $args, $taxonomies ) {
    global $pagenow;

    if( 'nav-menus.php' === $pagenow && reset($taxonomies) === 'product_cat' ) {
        $args['number'] = '';
    return $args;

add_filter('terms_clauses', 'change_product_cat_terms_clauses', 10, 3 );
function change_product_cat_terms_clauses( $clauses, $taxonomies, $args ) {
    global $pagenow;

    if( 'nav-menus.php' === $pagenow && reset($taxonomies) === 'product_cat' ) {
        $clauses['limits'] = '';

    return $clauses;

Code goes in functions.php file of your active child theme (or active theme). It could works.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.