Title: wp_insert_post problem/bug
Last modified: August 20, 2016

---

# wp_insert_post problem/bug

 *  [3dspot](https://wordpress.org/support/users/3dspot/)
 * (@3dspot)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-problembug/)
 * Hi guys. If you could help me with this one I’ll owe you.
    I am using wp_insert_post
   with add_post_meta($post_id, “_sale_price”, $priceCut);
 * All goes well. As you can see is a price on a shop, it appears on the custom 
   fields, but the wp see’s that it doesn’t until I edit the page and manually update
   the post. After that it’s all good.
    I really don’t know what to do.

The topic ‘wp_insert_post problem/bug’ is closed to new replies.

## Tags

 * [wp_insert_post](https://wordpress.org/support/topic-tag/wp_insert_post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [3dspot](https://wordpress.org/support/users/3dspot/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/wp_insert_post-problembug/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
