
Hello guys,
It seems like the acf_form_head function is not loading the files needed. The front end form is not working!
Here is my code:
<?php acf_form_head(); ?>
<?php // Template Name: Company - Add Gift
get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="breadcrumb">
<div class="container">
<div class="breadcrumb-inner">
<ul class="list-inline list-unstyled">
<li><a href="/">Home</a></li>
<li><a href="/">Company</a></li>
<li class='active'>Add Gift</li>
</ul>
</div>
<!-- /.breadcrumb-inner -->
</div>
<!-- /.container -->
</div>
<!-- /.breadcrumb -->
<div class="body-content outer-top-xs">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-9">
<?php
//acf_enqueue_uploader();
acf_form(array(
'post_id' => 'new_post',
'post_title' => true,
'post_content' => false,
'new_post' => array(
'post_type' => 'gift',
'post_status' => 'publish'
)
));
?>
</div>
<div class="col-xs-12 col-sm-12 col-md-3">
</div>
</div>
</div>
</div>
<?php endwhile; get_footer();?>
Hi @tzio
It’s possible that there’s a conflict on your site. Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
Also, could you please check the console tab on your browser for any error messages on the page?
Thanks 🙂