- This topic has 2 replies, 2 voices, and was last updated 2 years, 10 months ago by .
- The topic ‘How to move blocks to different hooks’ is closed to new replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I have a homepage that has an Atomic Bocks Hero Image Block, and the Contact Block, I also have made a Restaurant Menu with ACF Pro that I need to place Inbetween the Hero and Contact block.
The problem is they are all on the 'genesis_entry_content' hook.
Is there a way to set a priority to the Atomic Blocks? Or, Move the atomic blocks to a different hook?
Thanks all, another basic question I should know!!!
Blocks are not loaded individually into the genesis_entry_content. All of your content on the page or post is stored as a single field in WordPress. Blocks are referenced as comments in the content's post_content field.
ACF Pro allows you to take any field group and create a block with it. Take your recipe field group, create it as a block, and add it to your content as you would any other block. This way you can position it anywhere you want on the page. See this: https://www.advancedcustomfields.com/resources/blocks/
This is perfect!! I'm learning a lot about ACF right now, and this just opens up to a whole new level.
© 2023 WPEngine, Inc.