I’m trying to do WordPress development modular. Let’s say I create a flexible content field with some layouts (I called it modules or components):
My website structure is based on Pages and structured like this:
How would I assign let’s say “Layout B” and “Layout C” to Page1-Page99?
and let’s say “Layout A” and “Layout C” to Country1-Country99
Please note I’m not keen assigning Layouts on each page individually. I would like to have the control like via “Location, Rules” (based let’s say by “Post type” is equal to… or page parent is equal to…”)
Basically, I’m trying to assign the layout for many pages at once like page builders do based on rules.
I could hardcode it within the php code like if page.parent ==… then… but I’d like to achieve the same via ACF interface somehow.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users