How to get custom post type categories in an array
You can use get_terms() to retrieve the custom taxonomy terms and then build up a custom array to match the structure you want. Try this: //Get the custom taxonomy terms $taxonomies = array( ‘name’ => ‘your_custom_taxonomy’ //Edit to match your needs ); $taxonomy_terms = get_terms( $taxonomies ); //This array will store the results $taxonomy_array = … Read more