In order to override the default of per page, you can set the number to ” to instruct the query to return all categories. Add the following code to your functions.php file.
add_filter( 'get_terms_args', 'show_all_categories_admin_nav_menu', 10, 2);
function show_all_categories_admin_nav_menu( $args, $taxonomies ) {
if( reset($taxonomies) === 'category' ) {
$args['number'] = '';
}
return $args;
}
If you set the number to blank it will still shows the numbers of page even though it’s showing all the categories.
Hope this will help you.
Related Posts:
- Checklist of selected categories
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Use tag interface for hierarchical taxonomy?
- Moving Categories submenu to Media, but still opens Posts menu
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Remove “Parent” Selection When Adding/Editing Categories?
- How to stop wordpress from showing the selected category on top of others in the category selection?
- Render Selected Categories in Admin Edit Post Screen differently
- Add Post Screen Keep Category structure
- How can I enable a TINYMCE rich text editor in the admin interface?
- How to filter out Categories for specific post types on WordPress Admin?
- Automatically exclude categories from metabox based on title
- WordPress admin categories sort show is wrong
- Category control subcategories
- WP admin broken. Not saving catgories or adding categories to menu
- Admin comments and user restrictions
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- add slug beside name in Admin Category Checklists
- Using in ‘category_name’ in ‘$query->set();’?
- Change Default Content when Creating a Post based on Previous Category Choice
- Check with Jquery if second level checkbox from categories are checked
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Limit post top level categories to one
- Using a template page parent breaks page
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Show parent-child relationship for categories in the wordpress admin
- why is the delete option missing from just one category?
- Limit authors on specific catogories
- How to get category and archive title?
- Order get_terms() By Custom Field
- Should category.php and The Loop be used if the query needs to be customizable?
- How do the ‘tag’ and ‘category’ (default) taxonomies do ‘save_post’ action?
- How to search for categories and/or tags?
- Custom query with category exclusion and post-meta “whitelist”
- How to create a category and sub-category sorted blogroll with all posts?
- How to split the categories of subcategories with thumbnails
- Add custom category name as data-filter to switch between these categories
- Get all the blog’s categories and the related URLs?
- Restrict categories to a custom post type
- Catchable fatal error: Object of class WP_Term could not be converted to string
- Update taxonomy value of post type in query
- Is it possible to add short code and html tag in Category Description?
- Using a portfolio_category slug in wordpress URL
- How do I specify more than one category?
- Need Category RSS Feed that shows all posts
- Nav menu category links not showing
- Making a tourism information website [closed]
- Adding Categories Through Function
- Exclude a category from the_category in the single post page
- WordPress search only showing a few posts
- Display category posts before others category custom query [closed]
- Get Prevous/Next Post Specific Category Without Excludes
- Pagination is not working properly in Product Category/Tag pages
- How to recreate a copy of a product category in WooCommerce? [closed]
- add_rewrite_endpoint returns 404 on archives
- Multiple category archive page
- List subcategories of active parent category (WooCommerce)
- How to display post type and category links in foreach WordPress code
- Add multiple classes. Different style for each category tag
- Get posts under a category with SQL
- Inside a loop, how to change CSS class based on category name?
- Randomly load categories with latest post
- Is it possible to remove from default category widget?
- WordPress alphabetical A-Z custom post type post result display
- Count category views – Is it possible?
- Combine “category search order” with “don’t display child posts”
- category__not_in and id values from variable
- If x comments in a post move post to category y
- Count tags for a specific category
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- Adding additional content on post depending on post categories
- Root category template?
- wp_list_categories not excluing multiple ids
- Add Date & Author Meta to Category Archive Page
- A dropdown with checklist
- Custom meta boxes ID prefix showing on first category but not others
- Exclude category from foreach loop
- ID of last created category
- Show Secondary Sidebar on Category pages (archive)
- Get categories of queried posts
- Conditional category query breaking?
- Different header for each category
- 3.1 post formats and specific categories/custom taxonomies
- sidebar troubles, taxonomy trouble
- Code for Category, Tags, Archive URLs
- Duplicate new categories across multisite network
- Display all subcategories from parent category
- Template category.php with page (no posts)
- How to create Child Category page from scratch at wordpress?
- How to insert category to post via php?
- How to set featured image as background for a specific category?
- Show Subcategory Name Instead of Parent Category
- Get category id of next / prev post inside the_post_navigation
- Limit Category/Tag Dropdown To blog_id in Multisite Install With Global Categories/Tags
- Code to display category-specific single.php is overriding normal single.php, too
- Media Library filter returns undefined function get_current_screen
- Custom built theme won’t filter categories
- get IDs from links categories
- Display all subcategories for a product category in woocommerce
- Style sub categories differently from its parent category