Home › Forums › Front-end Issues › ACF Form taxonomy field and Buddypress conflict
Hi when I have buddypress enabled, my acf_form taxonomies doesn’t show any results when the dropdown is selected, it says ‘The results could not be loaded’, of i disable the buddypress plugin the taxonomy dropdowns show as expected. I have a page template which has the following code:
<?php
function returnHome(){
wp_redirect( esc_url( home_url( '/' ) ) );
exit;
}
//if ( !is_user_logged_in() ) returnHome();
acf_form_head();
get_header();
?>
<?php
/**
* Template Name: Load Submission Form
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content container">
<?php the_content(); ?>
</div>
</article>
<section>
<div class="container">
<?php if ( ($_GET['updated'] == 'true' || $_GET['do-register'] == 'true') ) {
//once updated, return to homepage
echo '<p><a href="'.esc_url( home_url( '/' )) .'">Return to homepage</a>';
returnHome();
} else {
// show form ?>
<form autocomplete="off" enctype="multipart/form-data" name="registerform" id="registerform" action="<?php echo get_permalink() . '?do-register=true' ?>" method="post">
<?php
$args = array(
'post_id' => "new_post",
'field_groups' => array(62),
'updated_message' => false,
'new_post' => array(
'post_title' => true,
'post_title_label' => $_POST['acf']['field_5ff5921bc7f1c'] . " - " . $_POST['acf']['field_5ff59276c7f1d'] . "Date:" . $_POST['acf']['field_5ff5869624818'] . "-" . $_POST['acf']['field_5ff586ba24819'],
'post_type' => 'loads',
'post_status' => 'publish'
),
'submit_value' => __("Register Load", 'acf')
);
acf_form($args); ?>
</form>
<?php } ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php get_footer(); ?>
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!
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.