The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
2answers
716 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 ...
0
votes
1answer
309 views

How can I clear memcached WordPress site options by hand?

Ater rebooting a memcache node, I am getting an error on root blog only, with a telling error log message from wp-includes/ms-settings.php. [Thu Jul 07 18:55:27 2011] [error] [client 12.34.56.78] PHP ...
1
vote
1answer
203 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 ...
0
votes
1answer
696 views

SELECT field options disappear when saving widget

I'm having an interesting problem that I can't seem to solve. While creating a widget, I have created a select field with options that can be chosen on the widget screen. It all works perfectly fine, ...
2
votes
1answer
182 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
671 views

WordPress plugin options and jQuery

I'm creating a plugin that uses jQuery to modify some css, but what I can't figure out is how you can control the execution of the jQuery with WordPress plugin options (like checkboxes true/false). ...
1
vote
3answers
312 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 ...
0
votes
1answer
112 views

What's the easiest way of adding more options in the Theme Options of the twenty eleven theme?

Wordpress 3.2 beta comes with twenty eleven. It has a Theme Option panel in the Appearance section: I would like to know what's the easiest (and extendible) way of adding more options to that ...
1
vote
1answer
177 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: ...
2
votes
2answers
234 views

Wordpress Plugin Setting's POST

I've developed a few plugin for Wordpress. Currently I've not been able to replicate the way wp save settings. I've a setting page which I learned from a tutorial. It POST to option.php, and wp take ...
-2
votes
2answers
697 views

I don't have permission to save the theme options I created myself?

I created an option panel following a tutorial. But each time I try to save the settings I get the following: You do not have sufficient permissions to access this page. Any suggestions to fix ...
9
votes
2answers
1k views

How to add field for new site-wide option on Network Settings screen?

I'm working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you ...
1
vote
3answers
554 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 ...
0
votes
2answers
2k views

Save Theme Options (options.php) From The Frontend

I try to save an option from the frontend but i can't find yet how to do it. So, the idea is to give the blog owner a simple form with a dropdown that can select a different stylesheet.css. I have ...
2
votes
1answer
706 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 ...
1
vote
1answer
3k 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 ...
0
votes
2answers
621 views

PHP class to add pages and fields in admin panel

I'm trying to build a little class to help build some simple input fields into a custom page in WordPress admin panel, here's what I've got: <?php class create_panel { public $default_settings = ...
2
votes
1answer
166 views

On Install, which code sets the 'home' option?

I'm just doing some wordpress development and wondered for a brand new install, which code within core is generating the first value that get's filled into the home option? I'm looking for the code ...
4
votes
2answers
494 views

Submenu pages delete settings from options array when saved

I'm writing a theme and adding a menu with several submenu pages. It works fine, except that I'm trying to use only one array to save all the settings into the database and this is causing some ...
0
votes
3answers
2k views

Can't save options

I created theme options page using Settings API, everything works fine but I can't save options. I tried to figure it out where I missed something but I failed. Any idea what can cause this problem? ...
0
votes
4answers
2k views

How to verify this checkbox is checked?

Actually I want to include a file if the checkbox is checked <?php $checked = get_option('automatic') ? "checked='checked'" : ""; echo "<input type='checkbox' name='automatic' $checked />"; ...
2
votes
1answer
65 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. ...
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', ...
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 ...
0
votes
3answers
2k views

How to find out if option exists but is empty?

I am using something like this on one of my plugins: $myOption_def = "myOption Default Value"; $myOption = get_option( 'myOption' ) ? get_option( 'myOption' ) : $myOption_def; That works fine, but ...
1
vote
5answers
504 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 ...
0
votes
1answer
306 views

Uploading and inserting an image using a custom option panel like in the Twenty Ten theme?

Twenty Ten gives the option to change the background image of the header. Where is the code involved in this feature? (uploading the picture and adding the picture). I would like to mimic this ...
36
votes
6answers
5k views

framework for plugin/theme options panel? [closed]

I found that the longest part of a plugin or theme development is creating the options panel, at least in my case. So i like to know what's your take on that. Do you use a ready made framework or ...
1
vote
2answers
452 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 ...
0
votes
1answer
51 views

What is the most efficient way of adding additional functionaliy for admin only

I'm trying to figure out the best approach to add additional functionality that will only be utilized by admins via /wp-admin. What's the best way to implement so that resources aren't being wasted. ...
34
votes
3answers
6k views

Are transients garbage collected?

This question got me thinking Transient RSS feeds in wp_options not removed automatically? Transients are supposed to expire and be deleted. However the only way I see this handled is when transient ...
0
votes
2answers
400 views

Accessing variable from admin panel?

I've created my own admin page in wp-admin folder using add_theme_page() function. How to pass variables from there to my blog? I mean what's the easiest way without arrays etc. I've tried using ...
2
votes
4answers
384 views

Long option names fail silently?

This was really driving me crazy. I was debugging some code with code-generated transient names and they were failing like crazy for no apparent reason. After much much pain and experimentation 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 ...
5
votes
2answers
18k views

How to use checkbox and radio button in options page?

Call me stupid but I coudn't figure out how to do it. For text input I would just: <input type="text" name="option_name" value="<?php echo get_option( 'option_name' ); ?>" /> and then ...
0
votes
1answer
340 views

How to add a new variable to blog creation form?

I'm trying to add a new INPUT field to the blog creation form on Buddypress. Adding the front-end element is the easy part. I'm having some hard time trying to save it. The variable is a string, and ...
2
votes
2answers
137 views

Unified Approach for Placing Option Pages

Currently, it is up to any plugin's author as to where to put a link to the plugin's option page. I have seen at least the following "solutions": Plugin list Dashboard menu Plugins menu Appearance ...
2
votes
3answers
198 views

update_option method with support of utf8

I am using a plugin the updates the option table using update_option command. When I update content with hebrew characters it turns into gibrish. My database does support hebrew (or any other utf8 ...
1
vote
2answers
511 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, ...
5
votes
4answers
3k views

Using widget options 'outside' the widget

I want to save some parameters in the widget options which are then passed into another page. The widget is a form which calls a webservice. The options I want to pass are the authentication for the ...
12
votes
4answers
7k views

How do I add CSS options to my plugin without using inline styles?

I recently released a plugin, WP Coda Slider, that uses shortcodes to add a jQuery slider to any post or page. I am adding an options page in the next version and I would like to include some CSS ...
1
vote
1answer
751 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: ...
3
votes
2answers
750 views

Multiple Custom_Background, is it possible?

Is it possible to create multiple "custom background" administration pages? A site I'm doing now needs 2 different background in 2 different areas, I would really love giving my client the same ...
6
votes
3answers
1k views

Options for CDN with WordPress Including Supporting Plugins?

What are the options for Content Distribution Networks for use with WordPress? I'd like to their objective pros and cons, their associated plugins or other ways to utilize them, their relative ...
3
votes
1answer
539 views

How do I create my own admin button and theme settings page?

I have some options I want my client to be able to change, and so I need an options page for my theme that I can show for those with "editor" status. How can I do this and utilise the options in my ...