Support

Account

Home Forums Gutenberg Post Objects and get_field() in ACF Gutenberg Blocks Reply To: Post Objects and get_field() in ACF Gutenberg Blocks

  • Alternatively you can use

    get_the_ID();

    To pull the post id, which does work when the post is published, but will not actually pull the Post ID for the preview. I’d love to figure out why or what that work-around is though.

    It seems that throughout the Gutenberg Blocks, the ID is changed to the Block ID instead of housing the Post ID.