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(); ?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.