Title: wp_insert_post
Last modified: August 20, 2016

---

# wp_insert_post

 *  [rl55](https://wordpress.org/support/users/rl55/)
 * (@rl55)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/wp_insert_post-2/)
 * how do I pass shortcodes in ‘post_content’ when using wp_insert_post function?
 * I am trying to add this –
    ‘post_content’ => ‘<h3>List of users for [user_name]
   | ID: [user_id] | [today_date]</h3>’;

The topic ‘wp_insert_post’ is closed to new replies.

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
