Title: Create post and populate custom fields
Last modified: August 31, 2016

---

# Create post and populate custom fields

 *  Resolved [edchype](https://wordpress.org/support/users/edchype/)
 * (@edchype)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/create-post-and-populate-custom-fields/)
 * Hi All,
 * I’ve create a custom post type called ‘resource’, and am able to create new ‘
   resource’ posts through a front-end form that populates the Title, Content and
   Excerpt.
 * The CPT also has custom fields and I am wondering how I could go about populating
   those fields through this form.
 * I’m using Josh Pollock’s walkthrough:
    [https://apppresser.com/wp-api-post-submission/](https://apppresser.com/wp-api-post-submission/)
 * I’ve made it so that the custom fields show up in a GET request – if that’s of
   any help towards solving this problem.
 * Any help would be much appreciated!
 * Cheers!
 * [https://wordpress.org/plugins/rest-api/](https://wordpress.org/plugins/rest-api/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [edchype](https://wordpress.org/support/users/edchype/)
 * (@edchype)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/create-post-and-populate-custom-fields/#post-7389553)
 * Solved!
 * Code was causing custom fields to show up only when the request was to view, 
   not post.

Viewing 1 replies (of 1 total)

The topic ‘Create post and populate custom fields’ is closed to new replies.

 * ![](https://ps.w.org/rest-api/assets/icon-256x256.png?rev=1346297)
 * [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rest-api/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [edchype](https://wordpress.org/support/users/edchype/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/create-post-and-populate-custom-fields/#post-7389553)
 * Status: resolved