Support

Account

Home Forums Gutenberg Gutenberg – Get values from another post

Helping

Gutenberg – Get values from another post

    • PaNnoz

    • January 5, 2019 at 1:51 am

    Hi guys,

    I’m working with Gutenberg, and what I’m trying to do is like the link, but then with Gutenberg.

    https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/

    I’m trying “$title = get_field(‘title’, 871);” but this isn’t working with blocks. Also tried to parse the blocks with “$blocks = parse_blocks( $post->post_content);”, but can’t get the ACF field by name.

    Is this possible to do now or in the future?

    Kind regards,
    Mark

    • PaNnoz

    • January 8, 2019 at 7:55 pm

    Hi all,

    Maybe there are more people running into this problem. I’ve contacted support and got the following response:

    —-

    I consulted the developer and I’m afraid this is currently not possible with the gutenberg plugin.

    All values within a “block” are saved within the Block JSON located within the post_content value.

    Apologies for the inconvenience.

    —-

    So, I’m afraid it’s not possible (yet).

    Kind regards,
    Mark

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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.