Support

Account

Home Forums General Issues JSON associated to page by slug instead of ID?

Unread

JSON associated to page by slug instead of ID?

  • Hi,
    I’m using acf json to sync between local and stage. A field group for the Home page is saved with the local page ID and not the slug (which is Home in this case):

     "location": [
            [
                {
                    "param": "page",
                    "operator": "==",
                    "value": "2667"
                }
            ]
        ],

    So when I push the json to the staging site the fields don’t work since the page Home has a different ID on that environment. Is there a way to change that value to the slug?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.