Home › Forums › Front-end Issues › Display form on front-end › Reply To: Display form on front-end
There are a number of errors on your code, please try this copy”
<?php /* Template Name: Application ENglish */ ?>
<php acf_form_head(); ?>
<?php get_header(); ?>
<div id=”primary”>
<div id=”content” role=”main”>
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
<p>My custom field: <?php the_field(‘my_custom_field’); ?></p>
<?php acf_form(); ?>
<?php endwhile; ?>
</div><!– #content –>
</div><!– #primary –>
<?php get_footer(); ?>
This will create a form to edit the current post
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.