Tagged Questions
2
votes
1answer
41 views
How can one utilize a variable as a callback function name for add_settings_field
I'm trying to cut down on the amount of code that is in my theme options function. I'm adding my settings like so: add_settings_field($k,$v,$callback,$the_options,$the_group,$args);
This works for ...
0
votes
1answer
76 views
esc_url not working within add_settings_field callback
I'm trying to display a saved option of a url inside a text input on my themes' options page, but it's just simply not displaying. I've checked the database and my url is saved using the specified ...
1
vote
1answer
248 views
settings API: how to create a multi checkbox with blog categories?
i need to create a callback function with a multi checkbox with all the web/blog categories as multi options.
my add_settings_fields are:
add_settings_field(
'select_page', ...
3
votes
1answer
553 views
How to pass arguments from add_settings_field() to the callback function?
I have a function like this:
add_settings_field( 'contact_phone', 'Contact Phone', 'settings_callback', 'general');
That works. It calls settings_callback. Cool. The problem I have with this is: ...