can’t see categories in appearance-menu-categories

Question

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.

0
, , , Alfro 7 months 0 Answers 98 views 0

Leave an answer