Home › Forums › Front-end Issues › Why can't I redirect after form submission? › Reply To: Why can't I redirect after form submission?
Never mind. I solved it. For anyone interested, my template (in the plugin directory) just does
<?php
acf_form_head();
get_header();
?>
In my plugin file, I made a function like this
function load_acf_form_head() { // do things to get the template };
add_filter('wp_enqueue_scripts', 'load_acf_form_head', 0);
This seems to change the order the template’s called in.
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.