Forum Replies Created

  • 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:


    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

    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 5 posts - 1 through 5 (of 5 total)

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.