Title: JSON API create_post, always create double posts
Last modified: August 20, 2016

---

# JSON API create_post, always create double posts

 *  [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/)
 * Hi,
 * If I create a post using the create_post method, I always get double posts. I’m
   using a clean WordPress 3.5.1 install, this is what I do:
 * **I create a nonce**
    [http://myURL.com/app/get_nonce/?controller=posts&method=create_post](http://myURL.com/app/get_nonce/?controller=posts&method=create_post)
 * **With the nonce I create a post with the title “Daves Test”**
    [http://myURL.com/app/create_post/?nonce=nonce&title=Daves%20Test&status=publish](http://myURL.com/app/create_post/?nonce=nonce&title=Daves%20Test&status=publish)
 * This gives me two posts with the same title, different ID and Permalink. I’d 
   like to have just one post. Anyone knows a solution?
 * Thanks in advance,
 * Dave
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

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

 *  [agent207](https://wordpress.org/support/users/agent207/)
 * (@agent207)
 * [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478825)
 * I’m having the exact same problem. Did you ever resolve it? If so, can you share
   with me? Thanking you in advance.
 *  [agent207](https://wordpress.org/support/users/agent207/)
 * (@agent207)
 * [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478826)
 * Dave are you having the problem when debugging the your app that calls the api?
   We noticed that if we let our app run it works correctly, but in debug mode it
   creates two wordpress post.
 *  [agent207](https://wordpress.org/support/users/agent207/)
 * (@agent207)
 * [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478827)
 * We are also using the authority version of json-api
 * [https://github.com/mimetic/wp-json-api-auth](https://github.com/mimetic/wp-json-api-auth)
 *  Thread Starter [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * (@freshcode)
 * [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478828)
 * Hello agent207,
 * I haven’t really had time to work on this project but I just tested it again,
   and now it’s working as expected, with and without dev=1 in the URL.
 * What exactly do you mean by debug mode?

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

The topic ‘JSON API create_post, always create double posts’ is closed to new replies.

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

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Dave van Hoorn](https://wordpress.org/support/users/freshcode/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/json-api-create_post-always-create-double-posts/#post-3478828)
 * Status: not resolved