reused get_cat_items function from function.php