KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using this bit of code: $args = array( 'orderby' => 'name', 'hierarchical' => 1, 'style' => 'none', 'taxonomy' => 'category', 'hide_empty' => 0, 'depth' => 1, 'title_li' => '' ); $categories = get_categories($args); What I am trying to do is to list only top level categories. When I am using this code I am getting all of them not just level one. Can someone help me?
Tags (comma-separated)
Save Edits
Cancel