Support » Developing with WordPress » Insert custom post type with wp_remote_post

  • Resolved jaap123456


    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)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert custom post type with wp_remote_post’ is closed to new replies.