How to add new post or product with custom field in frontend?

Home – Download Forums Custom Fields How to add new post or product with custom field in frontend?

Viewing 0 reply threads
  • Author
    Posts
    • #93
      code4binary
      Participant

      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.

      Demo Code:-

      Custom field is based on acf plugin. You can retrieve custom field data by get_field method or get_post_meta method.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.