Support

Account

Forum Replies Created

  • No, unfortunately still waiting on a response here on anyone knowledgeable on the product.

  • Looks like I spoke too soon. The above works perfectly if the taxonomy is set a select menu (only shows the 2 categories), but if i set to checkbox, radio buttons, etc, it lists all the categories rather than just the two.

    Is this a bug, or do I need to add something extra? Also is there anyway to set a default category value for new posts with this method?

  • Been struggling with this as well. Based on the above using the following in hopes of having my ACF category field only show two categories, the ones with an id of 10 and 16. The field name is “event-category”. When using the below in functions.php, it does not take any affect so assuming I’m missing something. Any thoughts? Also is there a way to set either 10 or 16 to be checked by default on new posts in the custom post type?

    function training_taxonomy_query( $args, $field, $post_id ) {
    $args[‘include’] = ‘10,16’;
    return $args;

    }

    add_filter(‘acf/fields/taxonomy/queryname=event_category’, ‘training_taxonomy_query’, 10, 3);

  • Same issue. When trying the above fix, when I click on the field it still brings up a popup asking the user to enter hour, minute and seconds, rather than just asking for the hour and minute. Having it ask for seconds is confusing since when entering events, there will never be an event that has a start/end second other than :00 so just cluters the interface. Is there a way to disable this?

  • As I mentioned above you can simply set the default value to “null” and that way no value will be selected by default. And you don’t need to remove “null” via javascript as it won’t show on the frontend at all by default. Just make sure you add “null” to the default value field and not in the list of other normal values.

    However, the radio button defaulting to the first field still appears to a bug that should be addressed by ACF.

  • Same issue. I have two options for the radio button and they are conditional. Meaning if the user chooses one it shows one field if the user chooses the other it should show a different field.

    It defaults to the first radio button but doesn’t show the conditional field so the user would have to toggle to the other option and then back to the original one. Very surprised such a bug hasn’t been addressed yet.

    One temporary fix is entering the word null into the the default value field which resolves the issue but it’s a radio button so should be empty by default. So worried that after I enter in these 400 entries there may be an update that may break compatibility with the null hack.

  • While none of that complex code above seemed to work, simply using this did for me:

    <?php $date = get_field('my-date');
    $date2 = date("F j, Y", strtotime($date)); ?>
    
    <?php echo $date2; ?>
Viewing 8 posts - 1 through 8 (of 8 total)