I have about a dozen Event Categories and 1 Post Category
When I use get_categories($args) where:
$args=array(
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => 0
);
I get the Post Category (which I want) and all the Event Categories (which I don't want).
I can't quite figure out the parameters to pass get_categories in order to see categories associated with posts only and not events. I've read a little bit about using get_terms() to do this and tried:
$args = array('type'=> 'post', 'order' => 'ASC', 'hide_empty' => 0 );
$taxonomies = array('category');
$terms = get_terms( $taxonomies, $args);
but this gives me the exact same results - my 1 post category and my dozen event categories.
Mark