This solution worked for me: https://wp-types.com/forums/topic/types-and-acf-conflict/
I deactivated the script that ben mentioned & then it works again…
+1 for this
Thank you for the effort, that worked :).
Hi John,
For the display option I used multi select -> checkboxes
Do the checkboxes use a ajax function for display?
I see in the code that the ajax function is only called when the select option is active?
if( !$select.exists() ) { is not false -> line 7258 on acf-input.js ?
PS: There are no errors in the console & no res
I remove the is_admin() tag from the if & still got no reaction.
+ as test I put this in the functions.php file:
function my_taxonomy_query( $args, $field, $post_id ) {
// modify args
$args['orderby'] = 'count';
$args['order'] = 'ASC';
echo '<pre>';
print_r( $args );
echo '</pre>';
exit;
// return
return $args;
}
add_filter('acf/fields/taxonomy/query', 'my_taxonomy_query');
Is it possible the ajax call is never done because its a frontend form?
its used like this:
add_action('init', 'UnitedDJ_plugin', 10);
function UnitedDJ_plugin(){
if( !is_admin() )
new UnitedDJ();
}
class UnitedDJ {
public function __construct(){
// Add on acf
if( class_exists('acf_field') ){
include('classes/acf.class.php');
}
}
class UnitedDJ_acf extends UnitedDJ {
public function __construct(){
// general actions
add_filter('acf/fields/taxonomy/query', array( $this, 'kies_je_categorieen_args' ) );
}
}
Try global $post;
This did the trick:
I was helped out by this comment:
“We had to check
– “Translate” for “Fields Group” and
– “Do nothing” for “Fields””
I have the same problem,
In the database I see field_keys are saved in the orginal post, but in the translated post not, maybe this is the problem?
I have the same problem,
In the database I see field_keys are saved in the orginal post, but in the translated post not, maybe this is the problem?
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.