Support

Account

Home Forums Front-end Issues Google Map acf_form isn't displayed in frontend Reply To: Google Map acf_form isn't displayed in frontend

  • Dear John,

    thank you very much. I moved acf_form_head() before get_header().

    But map still doen’t work. Do you have any idea please?

    Than you very much!

    <?php acf_form_head(); ?>
    <?php 
       /*
       Template Name: Add Page Template
       */
       
       get_header();
       
       ?>
    <div id="content">
       <div class="container">
          <div class="row">
             <div class="col-sm-12">
                <?php get_the_title(); ?>
                <?php
                   while ( have_posts() ) : the_post();
                   
                   	get_template_part( 'template-parts/content', 'page' );
                   
                   endwhile; // End of the loop.
                   ?>
             </div>
          </div>
       </div>
       <div class="container">
          <div class="row">
             <div class="col-sm-12">
                <?php
                   acf_form(array(
                   	'post_id'		=> 'new_post',
                   	'post_title'	=> true,
                   	'post_content'	=> true,
                   	'new_post'		=> array(
                   		'post_type'		=> 'place',
                   		'post_status'	=> 'draft'
                   	)
                   ));
                   
                   ?>
             </div>
          </div>
       </div>
    </div>
    <?php get_footer(); ?>