WordPress Debugger's Forum
Home › Forums › Custom Fields › How to add new post or product with custom field in frontend?
This topic contains 0 replies, has 1 voice, and was last updated by code4binary 1 year, 3 months ago.
Create page template for html form (not contact form) based on your requirements. Then you can I insert post by wp_insert_post method.
After that, you can update custom post by update_field() method.
Custom field is based on acf plugin. You can retrieve custom field data by get_field method or get_post_meta method.
You must be logged in to reply to this topic.
© WPdebuglog.com All rights reserved.