Home Forums Add-ons Flexible Content Field Assign layouts to many pages at once


Assign layouts to many pages at once

    • visata

    • June 9, 2020 at 3:17 am


    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):

    Layout A
    Layout B
    Layout C

    My website structure is based on Pages and structured like this:

    Landing pages
    – Page1
    – Page2
    – Page3

    – Page99

    – Country1
    – Country2
    – Country3
    – Country99

    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.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.