Title: Insert post programmatically using qtranslate
Last modified: August 24, 2016

---

# Insert post programmatically using qtranslate

 *  [idoia](https://wordpress.org/support/users/idoia/)
 * (@idoia)
 * [11 years ago](https://wordpress.org/support/topic/insert-post-programmatically-using-qtranslate/)
 * Hi,
 * I’m using this function to insert a post:
 * `$post_id = wp_insert_post(
    array( ‘post_title’ => $title, ‘post_content’ =>
   $content, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_category’ => 
   80 ) );
 * I want it to be included only in one language and leave the others empty, but
   the $title is inserted in every language.
 * Do you have any idea how to do that?
 * Thanks a lot
 * [https://wordpress.org/plugins/qtranslate/](https://wordpress.org/plugins/qtranslate/)

The topic ‘Insert post programmatically using qtranslate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate.svg)
 * [qTranslate](https://wordpress.org/plugins/qtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate/reviews/)

## Tags

 * [insert post](https://wordpress.org/support/topic-tag/insert-post/)
 * [programmatically](https://wordpress.org/support/topic-tag/programmatically/)

 * 0 replies
 * 1 participant
 * Last reply from: [idoia](https://wordpress.org/support/users/idoia/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/insert-post-programmatically-using-qtranslate/)
 * Status: not resolved