Support

Account

Home Forums Front-end Issues Using acf_form to create a new post Reply To: Using acf_form to create a new post

  • I am having the same problem when trying to show a form for creating a new post. I only see the submission button, nothing else. Editing a specific form works.

    I have copied the code exactly as is shown on this page: http://www.advancedcustomfields.com/resources/functions/acf_form/

    I get this error:
    Notice: Undefined index: new_post in /wp-content/plugins/advanced-custom-fields/core/api.php on line 1185 Warning: array_merge(): Argument #1 is not an array in /wp-content/plugins/advanced-custom-fields/core/api.php on line 1185

    Update:
    Using the fix in this post – http://www.advancedcustomfields.com/resources/functions/acf_form/ the error message is removed, but my form is still not showing. Any ideas?

    UPDATE 2!
    I was using the documentation for V5… So I had the wrong code!