The Settings API, added in WordPress 2.7, allows admin pages containing settings forms to be managed semi-automatically. It lets you define settings pages, sections within those pages and fields within the sections. New settings pages can be registered along with sections and fields inside them. ...

learn more… | top users | synonyms

0
votes
0answers
23 views

Let users to add any number of input fields in the theme option page

I've been creating a custom settings page for my own theme according to this article. What I want to know is how to let users to add any number of input fields. Just like this image I have ...
0
votes
1answer
6 views

Updating post_meta when updating a setting with the Settings API

I'm currently using the Settings API and, on saving my options group, I need to simultaneously update post_meta based on the options that have been saved. Is there anywhere within the Settings API ...
0
votes
1answer
10 views

How to move setting field up a row on general page?

I have added my custom setting field and it appears at the very bottom of the general setting page. I was wondering if there is any way to place it under tagline field rather than at the bottom? I ...
0
votes
1answer
19 views

Unable to Retrieve Setting Value for my Plugin

I'm developing my first WP plugin, and I'm trying to use the Settings pages to create options for the plugin. // add settings page add_action('admin_menu', 'qd_button_admin_add_page'); function ...
0
votes
0answers
27 views

Dynamically Update Key in Associative Array When Saving Settings

I'm updating a WordPress plugin that I've built and realized that I've made a fairly large error in my original design. This is somewhat confusing, but I'll try to explain it as best I can. On the ...
1
vote
2answers
45 views

Output 'do_settings_sections()' as tabs, not one under the other

I'm using the Settings API on an admin page and it's marvelously simple and all that. public function on_show_page(){ ?> <div id="admin-bar-button-page" class="wrap admin-bar-button"> ...
0
votes
1answer
48 views

Customizing Latest Post Pagination

I was able to successfully implement pagination for my "Latest Posts" page. But I want to separate the numbers after the current page and put a separator between them and the last page. Here is my ...
0
votes
0answers
24 views

Using Settings API to manage plugin data stored in custom table

I'm working on a plugin which needs: to store settings in wp_options table to store other data in several custom tables For the first point, I used the Settings API and everything works just fine, ...
0
votes
0answers
15 views

hide certain settings from showing on options page

I'm working on a plugin that hides certain settings in the General Settings page, like "WordPress Address (URL)" "Site Address (URL)" , but I want the rest to show. How can I achieve that, should I ...
0
votes
1answer
50 views

Flush rewrite rules on option update with Settings API

I'm working on some plugin where I need to enable custom URL rewrites. I want to enable editing of custom URL through Settings API, so basically I did everything that's needed to validate and update ...
0
votes
1answer
37 views

Plugin settings are saving but the fields

I'm following @Otto's tutorial on Settings API. I managed to save the plugin settings into the options table, but by any means can't save any fields. <?php /** * Add Settings SubMenu * Thanks ...
0
votes
0answers
36 views

Make a select field directly beside a text input field with the Settings API

I'm building a plugin that needs a very simple options page. I'm asking the user to enter the default width and the default height that they want the plugin to use for their embed. I also want to give ...
0
votes
0answers
38 views

Change Post Status from Plugin Settings page

I've been going at this for a few days now, and just can't finish this off. I have a plugin that on activation adds a custom post type (CPT), adds a couple of posts to the DB in a Draft status, and ...
0
votes
1answer
27 views

Option doesn't save

I am studying wordpress settings api and tried some tutorials. I want to save the option as an array. I put some defaults for the option and it works fine, but after I save the settings, it becomes ...
0
votes
0answers
56 views

Simple WP Plugin with plugin settings page

I need to create a plugin with only one select on his settings page and save select value. I have a select with all register menus and I can not to save my select value. What am I doing wrong? What ...
0
votes
0answers
30 views

Can i use third party setting api to my plugin?

I am new in wordpress plugin development platform and i am trying to develop a plugin. I need a setting option for this plugin. I have made my decision to use this ...
0
votes
0answers
36 views

Using a dropdown to alter an option value on plugin settings page

I'm trying to implement a dropdown menu on my plugin's settings page. When the user selects a choice from the dropdown and presses the Save Changes button, I need the choice's value to be appended to ...
0
votes
1answer
57 views

Generate activation url

For my registration I am using custom registration form.It works fine.It sends email with username and password. What I am looking I want to generate url so that when user click it automatically ...
0
votes
1answer
62 views

Setting conditional background image from meta value

I am trying to set background image from meta value.I am successful also.But if the meta image is not set the out put <div id="pricing" style="background: url('')"></div> But I do not ...
0
votes
1answer
80 views

Theme settings Page: Settings Api vs Update_Options

I’m a new WordPress developer trying to start a carrier selling Premium Themes. In the last week, I’ve been confronted to many difficulties trying to understand how to create a theme options page. At ...
0
votes
0answers
32 views

Tabbed navigation for plugin options using same row in database for all?

I'm trying to use WordPress' native tabbed navigation on my plugin's options page, but I'm having trouble. I've managed to get the options to display, though it displays every plugin option on every ...
0
votes
1answer
82 views

Dynamic settings fields with Settings API

I am at my first Settings API application and I hit a snag. In a submenu page, I need to generate a number of fields (say color picker) for each of the values retrieved from another setting. To be ...
0
votes
1answer
143 views

Uploading files using the Settings API

I've used the Settings API in the past to output text inputs and checkboxes but am unsure if I can use file inputs. My add_settings_field() is: add_settings_field( '1', 'File 1', array( $this, ...
0
votes
0answers
53 views

Adding a dropdown on my setting page

I have created a plugin and I have created setting for it where I have created a text field. But now I want to add a dropdown link. Can I show a thumbnail in the front of it in a dropdown, yes or ...
0
votes
0answers
45 views

Undefined index notice when using the $args parameter in add_settings_field()

I'm using the Settings API to provide my admin-user with some options for a plugin I'm writing. I have about 30 text fields to output on the plugin options page so I have created a very general ...
1
vote
1answer
39 views

Why use the Settings API over a new administration menu?

I'm writing a 'quote-me' plugin which provides the end-user with a quote based on data they submit through a front-end form. The quote is calculated according to a price list. The price list varies ...
1
vote
0answers
31 views

Determining the compatibility of Settings API & Multisite

New to this forum so forgive any protocol infringements on my part and feel free to criticize so in the future I don't again. Down to the nitty gritty. I'm working on a project and am very new to ...
0
votes
1answer
16 views

Validating values using Settings API?

I'm using the Settings API to create options for plugin. Do I need to validate the input values for the security (for example stripslashes etc)? (I could not find that part in most of the tutorials). ...
0
votes
1answer
144 views

get_option() returning empty

I'm building a settings page for a theme and the get_option() that I'm using to retrieve the settings returns only string(0) "" even though there is a checkbox field. What I want is to retrieve the ...
0
votes
2answers
203 views

Can't output do_settings_sections . Can't understand why

I've this code: /* Hook to admin_menu the yasr_add_pages function above */ add_action('admin_menu', 'yasr_add_pages'); function yasr_add_pages() { //Add Settings Page add_options_page( ...
0
votes
0answers
15 views

How do I build a settings panel under the plugin

I'm trying to build a settings panel for my plugin that is located under the plugin on the plugin page and slides down when the user clicks the settings link like other plugins (WP Maintenance Mode) ...
0
votes
1answer
62 views

Why won't register_setting() create a setting?

I'm stumped. I've been researching this like crazy, but I can't seem to figure out why register_setting() isn't working for me. I'm new to WP plugin development (obviously), so it's probably just ...
0
votes
1answer
13 views

Use the Settings API to whitelist a setting, but don't output it

I have a plugin page with several settings. Four of this settings, all in the same section, need to be displayed inline rather than one above the other. However to ensure the settings are whitelisted, ...
0
votes
1answer
29 views

How to use/retrieve an options array, with defaults, using get_option()

Someone explained me that using get_option is not productive, it's better to implement a custom function and then save the options in a single multidimensional array. Before I thought that having an ...
0
votes
0answers
30 views

how can I detect that option value has changed?

I am working on a plugin and I want to fire a different action based on each option value change. so how can I do that ? example: $options = get_option('ACP_settings'); if $options['acp-select'] has ...
0
votes
0answers
96 views

How to preview Google Fonts in a combobox

I have an option in my WordPress theme in which I can select +600 Google Fonts in a combobox. I added this option using a huge array containing them. But the problem is that I have to save the ...
1
vote
1answer
221 views

Saving Plugin settings to the database

I'm not a complete novice with php or wordpress but am wanting to approach this problem the most efficient way so believe asking here will help. I've got a plugin that randomly generates a quote - ...
2
votes
1answer
717 views

“Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin

I am developing a plugin using Tom McFarlin's Boilerplate repository as a template, which utilizes OOP practices. I've been trying to figure out exactly why I'm unable to correctly submit my settings. ...
0
votes
1answer
42 views

Secure my “add_settings_field” translation?

I am using "add_settings_field" and want to provide translation for it , but my problem is security. So is __('My Checbox:' , 'domain') secure enough for translation? If not what can I do about it? I ...
0
votes
1answer
105 views

Save button in theme customization page stays disabled

Ok here's the scenario: I have added a custom section to an existing theme so that it shows up in the theme customization page (customize.php). The problem I am having is that I don't know how to ...
0
votes
1answer
53 views

Settings API settings section not appearing

Settings API always been a little confusing for me. I am trying to add a simple theme options page for a child theme I am developing. I guess I am doing something wrong that preventing the section ...
0
votes
0answers
56 views

Settings API withing Singleton class

I've been trying to follow this tutorial but instead of just spawning code into the functions.php file, I'm trying to build a personal framework, so I can use this in other projects. Anyway, I wasn't ...
3
votes
1answer
151 views

How to Loop Plugin Option Field Set?

Problem/Background Currently, I'm creating a plugin for a client that will enable them to mark and modify predetermined Google Map polygons (displayed on the site) in the dashboard. I want to let ...
0
votes
0answers
67 views

Options not saving

My options were saving properly then I edited the files and it's not saving anymore. I undo the changes on the files and I'm sure that those were the only files that I edited. One section saved ...
0
votes
0answers
76 views

File input returns null in theme options array

Trying to work out a rather complex array situation with a theme options page. While working with file upload I can't seem to get it to work. Any idea what I might be missing? Simplified example ...
0
votes
0answers
118 views

Custom options - register, defaults and delete empty fields (Settings API)

I cant figure out how to register all of my setting fields into 1 database option. Code for my menu page: add_menu_page('Custom options', 'Custom Options', 'manage_options', 'rm_options', ...
0
votes
0answers
13 views

Two settings field in one form [duplicate]

is it possible to have two settings fields in one form? <?php echo '<form method="post" action="options.php">'; settings_fields( 'my-plugin-settings-group-1' ); settings_fields( ...
0
votes
0answers
72 views

Settings API Multiple Checkbox in General Settings

I am trying to add a custom setting at General Settings page with checkboxes. My plan to this is for users to select appropriate categories for their blog based on a list of categories through ...
0
votes
2answers
24 views

Can't add options to db

I'm trying to create a really simple options page for my wordpress site that just contains one option - a conversion rate for a currency. I have the following code: add_action('admin_init', ...
0
votes
0answers
34 views

How to handle complex data with Settings API

I hope my question isn't out of the scope of this website and that someone can help me with it. I'm currently studying the WP Settings API and I'm wondering how to create a form management section ...