Same options on Theme settings and single post
Hi. I have a lot of options in Theme Options panel and want to allow users to customize each page/post. For example, on each page user can choose and configure header:
- Options in Theme Options panel is default values if user don't use single post settings (multipicker set to default)
- In single post user can use same settings, but only for one page.
What is best practice to do this? I want to prevent massive code duplication.
https://github.com/ThemeFuse/Unyson/issues/1451#issuecomment-211517035
multipicker set to default
I strongly suggest to use addable popup with limit to 1 ANY other option will overload the admin and front will have the full array with all options
addable popup is always empty array unless added
but note that you will have to create a utility function to get global options , something like https://github.com/ThemeFuse/Unyson/issues/1356
@danyj Tnx for help. Now I can make admin part even better, than I planned before.
And how can I get options values on front-end?
And how can I get options values on front-end?
https://github.com/ThemeFuse/Unyson/issues/1356