• Hello,

    I am creating a code that will create a category (videos) and a subcategory (channel) using wp_insert_term(). Creating the parent is fine, it is created and it shows in the admin panel. Now the problem is the subcategory will sometimes show and sometimes will not. If it shows, it shows as a parent category not under the videos category and sometimes it shows under the uncategorized category.

    I knew that the subcategory is created because the function returns an array of term_id and taxonomy_id. So why is it that sometimes it will not show in the admin panel?

    What exactly is happening here? Please help.

    Thank you.

  • The topic ‘Subcategory will not show and sometimes will show in admin panel’ is closed to new replies.