having a very strange problem. I have an acf frontend form. But all fields that are relationship fields does not work for anyone on the site except for my account. I have the same problem on both lcaol and production site. And on both installations is the only plugin that is installed is acf. On my local installation i’m running local by flywheel setup.
And when i’m looking at the network tab and compare my account to any other account is when i’m trying to create a new post and clicked on the releation field, it is calling admin-ajax.js and returning an json object.
When I do the same thing to another account, it does call something but it returns the whole page in the ajax repsonse.
And I have tried to debugg and everything but I have no idea to do with this, bec it works for one user but not the rest.
And my code that displays the acf_form looks like this:
<?php acf_form_head(); ?>
<?php get_header(); ?>
<div class="col s10">
<?php if(have_posts()): while (have_posts()): the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php $args = [
'post_status' => 'publish',
'post_type' => 'ticket_post_type'
<?php $settings = [
'id' => 'create-ticket',
'post_id' => 'new_post',
'new_post' => $args,
'post_title' => true,
'return' => '%post_url%',
'submit_value' => __("Create Ticket", 'acf'),
<?php acf_form($settings); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>