Questions tagged [add-settings-field]

The tag has no usage guidance.

0
votes
2answers
106 views

Best place to store company address

Ok I'm creating a site for a company, this company will have multiple users. In the footer I am trying to include the company name, phone and address but not as a widget. I need to store the ...
6
votes
1answer
2k views

Settings API - adding setting fields dynamically?

Is there a way of adding settings fields dynamically? I have my own Settings API options generator just like in Chip Bennet's Oenology Theme, everything works perfect but I can't find a way to create ...
0
votes
1answer
28 views

Problem with checkbox in Settings API

I am trying to create a simple checkbox setting that toggles a section in a blog post on or off in a theme settings page. Unfortunately it's not saving the checkbox setting. I check the box and when ...
0
votes
1answer
88 views

How can I save a setting field with multiple checkbox options generated by a foreach loop on a custom wordpress admin page?

function ld_reports_plus_register_submenu_page(){ add_submenu_page( 'ld-reports-plus', 'LearnDash Reports Plus Settings', 'Report Settings', 'manage_options', ...
2
votes
0answers
382 views

Letting user dynamically create fields using Settings API

I created a settings page, using the Settings API, following this tutorial. Now I want to have a button that lets users dynamically add fields, similar to the way it is done in this other one. I don'...
1
vote
0answers
265 views

Move Custom Fields on General Settings Page to New Location

I've created some custom fields on the General Settings page after studying up on this post: Add multiple custom fields to the general settings page. I'd really like to move them to their own ...
1
vote
0answers
136 views

Settings API: Change position of custom setting field

I've searched high and low on Google and this site for an answer to this and am quite surprised to find nothing about it anywhere I've added a custom setting to the General settings tab using ...
0
votes
0answers
20 views

add_settings_field on permalink page

I'm trying to add settings fields on the permalink page. For some reason, it's the only page that doesn't save the settings. To reproduce: <?php function add_settings_permalink() { ...
0
votes
0answers
16 views

Wordpress theme custom Settings Section

i am trying to add a custom settings in my wordpress theme. Codes are below. only add_settings_field callback function is not working. anybody have any idea whats wrong?? main menu code is below: ...