• after moving from old site to new – wordpress site we moved many posts types using script that didnt updated the term counts.
    how can we update them now?
    i tries to use posts=get_posts( array(
    ‘post_type’ => ‘new_post”,
    ‘numberposts’ => -1,
    ‘taxonomy’ => $tax,
    ‘terms’ => $category->slug,
    ) ) with each term slug and than
    wp_update_term((int)r4hn $category->term_taxonomy_id, $tax, array(
    ‘count’ => count(posts)
    ));
    but its didnt work;

  • The topic ‘fixing terms counts’ is closed to new replies.