Support

Account

Forum Replies Created

  • @jarvis I had already tried that, didn’t help me at the time. But because I know it SHOULD work I decided to simplify more and added what I was doing it to a brand new WP container. It turned out that it was something in my code, although I still don’t know why.

    In another class file I am retrieving a bunch of fields using a similar class contructor function. All other fields seemed to work just fine, but as soon as I try to get the option for a repeater field that has 2 (and probably more) fields it produced that error.

    Was able to work around it, used the repeater and role to forward to custom urls on wp_login action hook.

    Thank you for your time though.

  • Same here. Can’t get anything to display but a dash-icon.

  • Isn’t the get_field() function by default getting the global $post->ID?

    You can get the fields within your loop by providing the loop’s post-ID as the second parameter with get_field() to get the it.

  • This is so weird:

    Working:

    ACF 5.8.0-beta1 /WP 5.9.8 / Gutenberg 4.0.0

    NOT working:
    ACF 5.8.0-beta2 / WP 5.9.8 / Gutenberg 4.0.0

    Working:
    5.8.0-beta2 (var $version changed to 5.8.0-beta1) / WP 5.9.8 / Gutenberg 4.0.0

    NOT working:
    5.8.0-beta2 (original) / WP 5.9.8 / Gutenberg 4.1.1

  • Yup, same here. I’ve created an add-on for a plugin called Toolbox that allow you to create Blocks, add ACF fields to it and the template for rendering the output all from the dashboard. It was working fine ’till I updated.

    Can’t get the most basic example to work with beta2, so rolling back to beta1 until someone can tell me where to start looking.

    EDIT: only rolled back to beta1 and everything is working fine again.

    WP 4.9.8
    Gutenberg 4.1.1

  • Ok, so after some frustration I got back to what I already had. Went back over the field_groups and over all the fields. When I found that particular fieldname there also were all the sub_fields.
    So something like this (typing this out, not copying):

    $groups = acf_get_field_groups();
    for ($i=0;$i<sizeof($groups);$i++) {
      $custom_fields = acf_get_fields( $groups[$i]['ID']);
    
      var_dump( $custom_fields);
    }
Viewing 6 posts - 1 through 6 (of 6 total)