$cats= get_categories(array(
'order' => 'ASC',
'orderby' => 'id',
'hierarchical' => 0,
'hide_empty' => 0,
'taxonomy' => 'edu_year'
));
I would like to produce a variable that contains an array of the IDs of the values retrieved from the get_categories function.
Based on the documentation it returns:
So:
Then
$output_categories
is exactly what you need.When you use get_terms: