Title: Insert custom post type with wp_remote_post
Last modified: June 10, 2020

---

# Insert custom post type with wp_remote_post

 *  Resolved [jaap123456](https://wordpress.org/support/users/jaap123456/)
 * (@jaap123456)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/insert-custom-post-type-with-wp_remote_post/)
 * This is my first support question on this forum, so please correct me if I’m 
   doing something wrong.
 * Is it possible to insert custom post types with wp_remote_post?
 * I’m developing a simple plugin that will insert different posts from one site
   to another. It works like a charm with the default post type. But I can’t get
   it to work with any other post type.
 * I read some documentation and thought I could give the post type in de the body
   array (‘post_type’ => ‘page’), but whatever I do it’s always imported as a default‘
   post’.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Prashant Singh](https://wordpress.org/support/users/prashantvatsh/)
 * (@prashantvatsh)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/insert-custom-post-type-with-wp_remote_post/#post-12967507)
 * Hi [@jaap123456](https://wordpress.org/support/users/jaap123456/)
 * If you are doing something like [this](https://levon.io/tutorials/create-wordpress-posts-from-an-api/)
   then changing the ‘post_type’ in the array should work for you.
 * Please check once if you are using the correct post type.
 * Regards
 *  Thread Starter [jaap123456](https://wordpress.org/support/users/jaap123456/)
 * (@jaap123456)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/insert-custom-post-type-with-wp_remote_post/#post-12969403)
 * thanks [@prashantvatsh](https://wordpress.org/support/users/prashantvatsh/) but
   already solved it, a rooky mistake by me..

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert custom post type with wp_remote_post’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [post_type](https://wordpress.org/support/topic-tag/post_type/)
 * [wp_remote_post](https://wordpress.org/support/topic-tag/wp_remote_post/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [jaap123456](https://wordpress.org/support/users/jaap123456/)
 * Last activity: [5 years, 12 months ago](https://wordpress.org/support/topic/insert-custom-post-type-with-wp_remote_post/#post-12969403)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
