category_count not updating
-
category_count is not updating when I run wp_insert_post()
Here is php code: https://gist.github.com/48d9ef8953aeb62a4942
I have tried
wp_set_post_categories( $post_id, array(52));and
wp_set_post_terms( $post_id, array(52), ‘category’ );
After the wp_insert_post and neither helped.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘category_count not updating’ is closed to new replies.