Home › Forums › Front-end Issues › front-end page show only "submit"
Add head.php-
<?php
acf_form_head();
wp_head(); ?>
</head>
And page.php-
acf_form(array(
'post_id' => 'new_post',
'post_title' => true,
'post_content' => true,
'new_post' => array(
'post_type' => 'post',
'post_status' => 'publish'
),
'return' => '%post_url%',
'submit_value' => 'submit'
));
Front-end page clear and show only button “submit”. Help me? please! 🙂
It code page:
<div class="entry-content">
<form id="post" class="acf-form" action="" method="post" >
<div style="display:none">
<script type="text/javascript">
acf.o.post_id = "new_post";
</script>
<input type="hidden" name="acf_nonce" value="e91d36a1d6" />
<input type="hidden" name="post_id" value="new_post" />
<input type="hidden" name="return" value="%post_url%" />
<div id="wp-acf_settings-wrap" class="wp-core-ui wp-editor-wrap html-active"><link rel='stylesheet' id='editor-buttons-css' href='https://xxx.com/wp-includes/css/editor.min.css?ver=4.9.2' type='text/css' media='all' />
<div id="wp-acf_settings-editor-tools" class="wp-editor-tools hide-if-no-js"><div id="wp-acf_settings-media-buttons" class="wp-media-buttons"><button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="acf_settings"><span class="wp-media-buttons-icon"></span> add_media</button></div>
<div class="wp-editor-tabs"><button type="button" id="acf_settings-tmce" class="wp-switch-editor switch-tmce" data-wp-editor-id="acf_settings">Visual</button>
<button type="button" id="acf_settings-html" class="wp-switch-editor switch-html" data-wp-editor-id="acf_settings">text</button>
</div>
</div>
<div id="wp-acf_settings-editor-container" class="wp-editor-container"><div id="qt_acf_settings_toolbar" class="quicktags-toolbar"></div><textarea class="wp-editor-area" rows="20" autocomplete="off" cols="40" name="acf_settings" id="acf_settings"></textarea></div>
</div>
</div>
<div id="poststuff">
<!-- Submit -->
<div class="field">
<input type="submit" value="submit" />
</div>
<!-- / Submit -->
</div><!-- <div id="poststuff"> -->
</form>
</div>
You must be logged in to reply to this topic.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?
— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.