Title: WordPress API create post not working
Last modified: November 25, 2021

---

# WordPress API create post not working

 *  [udittp](https://wordpress.org/support/users/udittp/)
 * (@udittp)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wordpress-api-create-post-not-working/)
 * I have created a python program to create a post and media through wordpress 
   APIs, however it is not creating media or post and returning response 200.
 * The same code I have used for another website and is working.
 * Thanks
    Udit

Viewing 1 replies (of 1 total)

 *  [SevenMentor](https://wordpress.org/support/users/sevenmentorindia/)
 * (@sevenmentorindia)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wordpress-api-create-post-not-working/#post-15108341)
 * I found that the problem is in the Basic Auth plugin. WP-API guys recommend using
   their own plugin and this solution works for me.
 * Deactivate all activated basic auth plugins in your WordPress dashboard
    On the
   machine your WordPress is running go to the plugin folder Run
 * git clone [https://github.com/WP-API/Basic-Auth.git](https://github.com/WP-API/Basic-Auth.git)
 * Go to your WordPress admin dashboard, plugins page. JSON Basic Authentication
   should be in the list. Activate it.
 * Now creating a record via POST request should work.
 * [The Best Training Provider in India | SevenMentor](https://www.sevenmentor.com/)

Viewing 1 replies (of 1 total)

The topic ‘WordPress API create post not working’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [SevenMentor](https://wordpress.org/support/users/sevenmentorindia/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/wordpress-api-create-post-not-working/#post-15108341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
