JavaScript for WordPress › Forums › Gutenberg Development › Get post id › Reply To: Get post id
September 12, 2018 at 3:18 pm
#57811
Zac Gordon
Keymaster
Okay, I guess I need to see the code where you are using this with your Gutenberg block.
Is this for a dynamic block? Could I see how you’re integrating this with the PHP for the dynamic block? Within that you should have access to the global $post if you need.
Thanks!