I’ve been trying to affect a block, based on an external custom field but with no luck! So i wanted to check and see if anyone has managed to do this, if i am missing something daft or if it is simply not possible!
What i mean is, i have a custom field that appears in the side bar of every page of type “Page”. It’s a select which returns a value between 1 and 4.
Then, i have a custom block for the page hero area.
What i would like to be able to do is, inside the hero block, check the value of my custom field that appears in the side bar and alter things according to what that field is set to.
What i’m finding is, if i retrieve the sidebar field in my page.php template, it returns the number, as expected. But if i try from within the hero block, it returns absolutely nothing!
It’s official! These brilliant minds (@tessak22 and @zgordon) are creating an entire course on ACF Blocks! Interested in Gutenberg but enjoy the comfortable recliner that is PHP? This course is for you! Pre-sale on now! 🔥🔥🔥 https://t.co/ifMzctgsN8