get_categories is empty |

I have the same code on 10+ websites, I can see the items are there but then WP stopped displaying… and the array is empty.

$subcategory = get_categories(array('taxonomy' => 'slide-page', 'post' => 'slide', 'hide_empty' => false, 'meta_key' => 'order', 'orderby' => 'meta_value', 'order' => 'ASC'));


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer