Return array from Theme Options MetaBox/Timber Twig
-
I have created the options and settings page for my theme using the code in the snippet library: https://github.com/WebDevStudios/CMB2-Snippet-Library/tree/master/options-and-settings-pages
I am also using the timber/twig framework, so what I want to do is retrieve the entire array of values from the theme options box so that I can pass it to my .twig view.
I can’t seem to find anything about this. Is there an easy way to return an array of all field values/keys for a particular metabox (theme options page in this case) so I can assign it to a variable?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Return array from Theme Options MetaBox/Timber Twig’ is closed to new replies.