WordPress.org

Ready to get started?Download WordPress

Forums

Custom Terms list only Parents (1 post)

  1. robsonbotelho
    Member
    Posted 1 year ago #

    I recently made up this script that automatically inserts a few terms on the WordPress database. The code does a simple loop and creates some terms and, after that, creates some children terms to them. I use this to create the the terms.

    wp_insert_term( utf8_encode($bairros['BAIRRO']), 'property_location', array( 'parent' => $parent ) );

    Everything goes fine, except for one thing: when I go to the WP-Admin to see how stuff are, I can only see the custom terms with hierarchy on the drop down list. The table containing all the terms doesn't show th children, only the parents. And if I update any of the terms, everything is shown correclty.

    You can see a prin screen of the problem here.

    The most awkward thing is that, after update any of the terms, everything works great, as you can see here.

    Any help?

Topic Closed

This topic has been closed to new replies.

About this Topic