Ecommerce Shopify WordPress Discussion

Settings API with Sub-pages removes content from other pages

So I've used this generator to create the bones of my admin page builder: https://wpturbo.dev/generators/settings-page/ And I've modified it so I can use it to create pages & sub-pages: https://github.com/Amias-Burrows/options-page-creator I've got it working perfectly, it creates the pages, saves content that I can call in other parts of the code. The only issue is when I save content to one page (e.g. the root page) and then save some content onto the other page (e.g. Danger Zone), as you would with a setup like this, it removes the content that had been saved in the other page. I am under the impression it's linked with the register_setting() line but I don't know how to repair that issue unfortunately. If anyone can spot a fix that would be amazing! I've been scratching my head over this for hours Here is a link to a picture of the pages I'm referring to in the menu of my Wordpress installation: https://imgur.com/a/2xILvEO I've tried changing the get_option() and register_setting() parameters but what I'd expect to work. e.g. register_setting( 'options', $this->page_slug ) brings up an error saying that the contents of $this->page_slug is not in the allowed options group list however, I thought the allowed options group list was identified with the first parameter rather than the second. https://developer.wordpress.org/reference/functions/register_setting/
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.