I have a php script that takes categories from softonic.com. It is supposed to insert these categories inside an apps category. It does it with wordpress functions. After launch my script I can see all the categories inserted in the database, and also in the post-categories menu as shown in the screenshot:

enter image description here

But my problem is I need to do the menu navigation, and when I go to appeareance menu - categories I should see this:

enter image description here

but I see this:

enter image description here

And there are hundreds of categories. I can't do my navigation menu. I should see the categories under a tree, but they show in alphabetical order and without parents. As you can see in the first image, they have all a parent. How can I see them like in the second image?? I'm inserting it with this function and it worked before:

    $id = wp_create_category($cat_name, $parent );

but I have this problem since I have upgraded my shaifa theme.

  • And if you switch theme to a bundled one (a Twenty-something one) do you see the problem?
    – s_ha_dum
    Dec 11, 2015 at 17:34

1 Answer 1


What you see is normal behaviour. Quoting the codex:

The list of categories to select from do not display with any hierarchy, though that may be subject to change in future versions of WordPress.

As far as I'm aware there is no plugin for this either.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.