The tag has no wiki summary.

learn more… | top users | synonyms (1)

2
votes
1answer
2k views

How can you upload an image from within a settings page?

Is there an easy way to include an upload box to your settings page? I am building an Open Graph options page and I like users to upload a standard image directly from that page.
2
votes
1answer
416 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. ...
2
votes
2answers
286 views

Custom style on profile options page

is there any way to style the profile page on wordpress ? I will like to add something like: Start of the page just below the <h2> tag <div id="normal-sortables" class="meta-box-sortables ...
2
votes
1answer
739 views

How to add multiple checkbox elements to media attachments?

Based on solved question from: How to add a checkbox element to attachments editor with example Theres an example of multiple Checkboxes, for example: Colors, patterns, etc... A grouped list but ...
2
votes
1answer
66 views

Environment Specific Options Token

Is it possible to add a token to any wp-option that could be replaced on get where the token being defined in a plugin’s option or the configure file? E.g. ...
2
votes
3answers
2k views

Where to hook register_settings for Settings API when also want to update options outside of Settings API?

The Settings API is a convenient way to add administrative options. Tutorials on the settings API hook register_setting to admin_init. But what if you also want to programmatically change the same ...
2
votes
1answer
121 views

Site Title and Tagline in Pagelines DMS Options Panel

I'm using the Pagelines DMS Theme and I'm wanting to extend the functionality of the front end admin panel. The user(s) I'm building this for would like to be able to edit a few settings directly from ...
2
votes
0answers
75 views

Tab from Settings API resetting all options with INSERT INTO [closed]

I have an Options menu created with the code from Chip Bennett tutorial, the old code, though, the one from like a year ago (the new one has a much better validation structure, but still, it works ...
2
votes
2answers
1k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
2
votes
1answer
194 views

Restore a Plugin's Default Settings

Is there a way to code "Restore Defaults" button into a plugin options page? I'm writing a plugin right now that has sets up some default values on activation (via register_activation_hook), and I'd ...
2
votes
1answer
182 views

How do I setup nested repeatable option fields?

I'm trying to wrap my head around how to create a set of option fields that should be able to repeat for as many times as possible. But I'm having a hard time to figure out how to proceed. Currently ...
1
vote
3answers
395 views

Creating a plugin that will add options. Where should the options menu pages go?

I am creating a plugin for a restaurant theme that will provide a few options to add the restaurant hours of operation. Currently, I use a custom post type to control the restaurant hours but have ...
1
vote
2answers
4k views

Enable page templates. How?

Basic question, but I want to enable page templates. I have one theme which has page templates enabled. I switched to another but there is no option to change the template, even when creating a new ...
1
vote
5answers
550 views

How to store a medium amount of options?

I develop a plugin that has a not too small number of settings. So far, there has been a fixed number of them, so I store them in a Wordpress option. Now I consider letting users define (an arbitrary ...
1
vote
1answer
69 views

How to cache posts based on $_GET? Option name is too long? Options / transients

I have a search feature set up that is fairly expensive and I want to cache the results, based on the $_get string, like: ...
1
vote
1answer
290 views

Settings API erases itself?

I have two forms created using Settings API, and when I save one of them the other one gets erased and vice versa. Here's the whole code so you could paste it into your functions.php file and see ...
1
vote
1answer
2k views

Working with an Array inside Your Theme Options Array - Multiple Values

I apologize if this is covered extensively elsewhere, I'm not sure how to phrase my searches on the topic. Basically, instead of the following standard code to store data in WP-options... $options = ...
1
vote
2answers
788 views

Where is the submitted $_POST array stored after an option page submission?

What happens, when I click Save Changes on a option page, which was created by add_menu_page()? Where is the submitted data stored before the database transmission? A print_r($_REQUEST) returns only ...
1
vote
3answers
656 views

How to debug register_setting callback function

I am using the following code: register_setting( 'myplugin_options', //setting group name 'myplugin_options', //option name that will be stored in the database ...
1
vote
1answer
38 views

Plugin options not being saved or created

Having a lot of trouble with this config page. I have followed the documentation (which was sparse) and done a bit of searching for help. My problem is simple, my config options aren't being created ...
1
vote
1answer
54 views

Include user defined styles without including wp-load

I've looked through the answers on here and none quite match my situation. I have custom CSS that a user can edit and it is saved in the options. I use wp_enqueue_style to include a PHP file with a ...
1
vote
1answer
148 views

Settings API - how to update multiple options manually?

I'm storing all my options using Settings API: function registerSettings() { register_setting('XX_theme_settings', 'XX_theme_settings', 'setting_validate' ); add_settings_section('theme_options', ...
1
vote
2answers
6k views

Contact form 7 select box different value-text then content-text in option [closed]

DSoes anyone know how I can set a different valute in the select-options in contact form 7 plugin? Here is an HTML example of what I'm trying to do <selct> <option value="1">My ...
1
vote
1answer
206 views

Insufficient permissions to save options

Hi I have built a settings page which from the menu leads to: http://www.mysite.com/wp-admin/admin.php?page=theme_options The problem is that when I go to save the options and I am an EDITOR user I ...
1
vote
2answers
1k views

Add a series of checkboxes to theme options

Hi I made a theme options by this tutorial This options have multicheck type by checkboxes. I don't know how to make it work. I'm try to exclude page using this multicheck. This is my array with ...
1
vote
2answers
48 views

How do i save plugin-specific info?

Im currently building a plugin that imports some data from an XML feed. This is all working great. Now i want to add some info, letting the user know when the last import happened. "Last import: ...
1
vote
2answers
44 views

Can I use a space in an option name/key?

Is there any reason at all that I can't use a space in a WP option name/key? Ex. update_option( 'my option name', 'abc' ); I can't find anything that states I can't, but every example uses an ...
1
vote
1answer
147 views

How to add a new plugin page under desired Options page?

Using WordPress Settings API tutorial I created a new custom menu and corresponding sub menus. Each of my menus have a page of its own. I used add_menu_page() and add_submenu_page() for that. (Here is ...
1
vote
2answers
2k views

clean wp_options table unused rows

In my Wordpress Blog site i have installed too much plugin and remove also many plugins. In database table "wp_options" size increases approx 13MB and there are many rows which are unused at this ...
1
vote
1answer
588 views

How can I add an options page for my class based plugin?

I'm trying to use the new Settings API with a class based plugin to add a settings page. This is the code I have so far: class simple_sample_plugin{ function simple_sample_plugin() { ...
1
vote
2answers
2k views

Add “Post Options” for new wordpress post

How i can add "Post Options" section under wysiwyg editor? Like this
1
vote
3answers
331 views

Where should I update_options in a theme?

I am designing a theme where the home page (i.e. is_home()) should only display the latest blog post. I want to do something like $wp_query->update_option('posts_per_page', 1) every time I am on ...
1
vote
1answer
2k views

two tinyMCE editors in the same page

I've used this method to enter the first editor: on functions.php: function add_admin_theme_styles() { wp_enqueue_style('thickbox'); } add_action('admin_print_styles', ...
1
vote
1answer
791 views

How can I display/hide certain content based on a Theme Option field?

I'm building a Theme Options page for my theme, and I've managed to get most of it working fine. But now I'm trying to show and hide certain parts in my theme based on a simple check box. An example: ...
1
vote
1answer
54 views

Theme settings default, strange behavior before first save

I was building a theme options page with the settings API. I use an ajax call to compute some settings automatically from other pages / tabs. I noticed that all of the new settings default ("std") ...
1
vote
1answer
473 views

Add transparency to wordpress color picker?

Question: How could you add a few transparency options (none, semi-transparent and solid) to the chosen color in the wp color picker? I'm working on a set of theme options. I am using the wp color ...
1
vote
1answer
156 views

Is there a capability for managing plugin options?

I have an Editor user that I want to let use a plugin's options without being an Administrator. I can use $user->add_cap but can't tell if any particular capability relates to the permission to edit ...
1
vote
1answer
352 views

wp_dropdown_pages() in theme admin page

Scratching my head on this one. I have a theme option page, where I need the user to select a page to show at X location. I am using wp_dropdown_pages() to list my pages, and they show. But, I can't ...
1
vote
2answers
175 views

Set front page option using custom fields?

Hello wordpress gurus! I want to be able to set the frontpage via a custom field. So for example, in the new page area in the wordpress admin there is a custom field that displays "Set as frontage", ...
1
vote
1answer
199 views

How can I show the contents of only a few users

I'm trying to show the contents only for certain registered users. All users have the role of "agent". To hide the contents of an unregistered user, I use this code: <?php if ( current_user_can( ...
1
vote
1answer
136 views

WordPress Network admin options page: how to store options and where will they be stored?

I'm creating an additional WordPress Network admin page, and I need to store some system-wide option. The good thing that a config file will be generated, so no access is required from the child ...
1
vote
1answer
823 views

Multiple options pages validation for a plugin

I am writing a plugin and I decided to have multiple pages for different options of the plugin (for clarity's sake). Doing a single option was a piece of cake, but I'm encountering difficulties when ...
1
vote
1answer
499 views

Can't save checkbox option

I know this is a mess, but can someone tell me why I can't save to checkbox option in this plugin? /* Runs when plugin is activated */ register_activation_hook(__FILE__,'vigtigt_besked_install'); ...
1
vote
1answer
182 views

New custom theme option (text input) giving index error

I am using the theme-options.php file from ThemeShaper: http://themeshaper.com/2010/06/03/sample-theme-options/ I can succesfully add new dropdown options, however when I add a new text input I ...
1
vote
1answer
178 views

Admin Theme customization

I followed instruction on the wordpress codex site on creating an admin theme via a plugin. I activated the plugin, but my stylesheet isn't being included in the <head>.. Here's my code: ...
1
vote
2answers
470 views

Changing widget options via the functions.php when there are no hooks

The problem: to change a widget's options with a custom function in functions.php, when there are no useful hooks, and where there are multiple occurrences of the same widget (multiwidget). This ...
1
vote
2answers
550 views

get_option returns undesired blank instance of a widget

I am presently trying to call the fields of a custom widget using get_option and loop through the array created from the get_option() call. The issue is that it is outputting a blank one at the end, ...
1
vote
0answers
11 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
1
vote
1answer
139 views

Multiple options not staying selected after saving

Problems: The save works, but is only storing one of the options in the database after save. Options not showing as selected after save. The select fields: <select ...
1
vote
0answers
35 views

Is there an atomic way to update_option in Wordpress (to ensure data integrity)?

I want to update an option which is an array by adding a new value, but there's no atomicity or guarantee of data integrity. EXAMPLE //Get the option value (an array) $val = get_option( ...