How to get the fields by the specific section instead of opt_name.
-
Hello,
I’m trying to get the fields based on the sections.
According to the sample:
let’s say, opt_name is ‘sample_options‘.
And the section is ‘colors‘.
And the fields are ‘site-title-colors‘ and ‘footer-background-color‘.
I’m already aware of the way $sample_options, and it gives all the fields without section based.
Is there any way to get the fields based on the ‘colors‘ section related fields only: (‘site-title-colors‘ and ‘footer-background-color‘)?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.