I have created a custom post type
portfolio_posts using the CPT UI plugin. Using the same plugin, I have created a taxonomy
portfolio_category. I have made multiple entries under this taxonomy.
I want to list all the entries under
portfolio_category, but all I'm getting is an empty array.
Here's what I've tried:
$args = array( 'taxonomy' => 'portfolio_category' ); $taxonomy = get_categories ($args); echo '<pre>'; print_r($taxonomy); exit;
When I replace
category I am successfully getting all the entries under
What am I missing here?
Here is a screenshot of the entries under portfolio_category and below is an example of how they are saved in the