Support

Account

Home Forums Front-end Issues Error when creating new post Reply To: Error when creating new post

  • Thanks for the reply!

    I’ve checked the code and haven’t found anything like that, i’ve even removed any code that weren’t related to the form and nothing changes.

    Here’s the code I’m using:

    <?php acf_form_head(); ?>
    <?php get_header(); ?>
      
      <div id="primary">
        <div id="content" role="main">
     
          <?php /* The loop */ ?>
          <?php while ( have_posts() ) : the_post(); ?>
     
            <?php acf_form(array(
    	  'post_id'	=> 'new',
    	  'field_groups'	=> array( 123 ),
    	  'submit_value'	=> 'Create a new event'
    	)); ?>
     
          <?php endwhile; ?>
     
        </div><!-- #content -->
      </div><!-- #primary -->
     
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>