The options tag has no wiki summary.
0
votes
2answers
866 views
Does WordPress MultiSite use separate MySql databases?
I ask because I cannot find the options from a plug-in I created on my second blog.
Adding this plug-in to the main site and the options show up.
I am confused because there is a column in ...
0
votes
2answers
1k 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 ...
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 />";
...
0
votes
2answers
267 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 ...
0
votes
1answer
32 views
Wordpress theme options framework, I can't read them in my templates
I successfully created my theme options page using this framework:
https://github.com/devinsays/options-framework-theme
The problems Is that when, for example, I try to load the Option: 'logo_image'
...
0
votes
2answers
240 views
Plugin getting Cannot modify header information errors
I am trying to build my first plugin but am receiving the following error:
Warning: Cannot modify header information - headers already sent by (output started at ...
0
votes
2answers
46 views
How to add options to the plugin page?
I can't find a more or less clear example on how to create additional fields, so may be someone can help me here? Here is my code:
function __construct(){
add_action('admin_init', array($this, ...
0
votes
1answer
74 views
Link blogname and blogdescription to the Options Framework
I'm putting together a Theme Options page, where the user(s) I'm building this for would like to be able to edit a few settings directly from this page, including of which - the Site Title and ...
0
votes
1answer
67 views
Saving widget options from class method
I have a widget class (derived from WP_Widget) that has a method (called via ajax) to update part of its options(the elements order) without the user to click "Save", to set the handler I do from the ...
0
votes
1answer
52 views
Wordpress custom admin functions security
i have a case in my admin panel where i need to call my own function that resides in my own php file, with a GET request. This function is actually removing entries from the database.
So, i would ...
0
votes
2answers
1k views
Contact form 7 select box different value-text then content-text in option
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 ...
0
votes
1answer
60 views
retain querystring values when savincustom options in admin
Quick question, I have a custom options page which posts to options.php, however I have a few sections to my options page where i change the post url like so: <form ...
0
votes
1answer
156 views
Default Plugin Settings Not Writing to Database
I have my plugin setup as such:
Main plugin file mouldings.php
<?php
/*
Plugin Name: Moulding Profiles
Plugin URI:
Description: Creates a 'Moulding Profiles' and 'Idea Gallery' custom post ...
0
votes
2answers
376 views
When to use custom DB tables or add_option?
I've got a pretty straight forward question. When does it become too much data to use add_option, update_option, etc, and instead use a custom DB table?
For example, if a plugin stores thousands and ...
0
votes
2answers
348 views
How to save user meta on custom admin page
I have removed the edit profile page from WP admin as I don't want users to be able to edit their details as this is a closed intranet and their details are fed from AD.
However I do want them to be ...
0
votes
1answer
162 views
Save user-specific options in WordPress admin
I'm writing a plugin that need to save user specific option in an admin page. I'm only thinking of adding username-prefix to option, for example:
$options = get_option('username-plugin_options');
...
0
votes
1answer
156 views
Getting values from options page to css
i got an options page that needs to affects a certain (for now) css value..
i have about using php variables in css and creating custom global variables in wordpress but havent something easy enough ...
0
votes
1answer
178 views
Defining hooks within (php)classes?
I have been trying to write a reusable modular options class and I am stuck at this specific point.
How do i define hooks within php classes?
Try 1 :
class super_options {
// ...
0
votes
2answers
393 views
How to dynamically change theme's slogan from admin?
how can achieve this functionality. That I can change the themes "slogan" from admin and I don't have to go edit the themes source files.
I think that there is some theme options functionality. But ...
0
votes
1answer
45 views
Get value from db for custom contact form
I built my own contact form (no plugins) and want to have a secure way to get an emailadress from my option page. get_option and other built in WP stuff doesn't work from within my process.php file.
...
0
votes
1answer
31 views
wp_dropdown_categories initial value
I am currently pulling in an option drop-down of a specific category using:
<?php wp_dropdown_categories('child_of=20'); ?>
I would like the initial value of the drop-down to say 'Bedrooms' ...
0
votes
2answers
71 views
Custom Theme Fields in Settings Menu - apply filters to one of those fields?
I found an interesting concepts of adding an additional option to the "General Options" in Wordpress.
/**
* Custom Theme Settings
* see http://digwp.com/2009/09/global-custom-fields-take-two/
*/
...
0
votes
1answer
136 views
Theme Option select values
I'm building a theme options panel and so far been successful, except with the "Select" type option. This is my code:
array( "name" => "Transition",
"desc" => "Choose the type of ...
0
votes
1answer
43 views
Difference between Option_Group and Option_Name in Register_Settings
I think the title pretty much says it all! I'm working my way through various tutorials on how to add an options page to my test plugin and am struggling to understand the Register_Settings function.
...
0
votes
1answer
55 views
How to include stylesheet in custom admin using parent_slug
Using this code from codex:
function my_enqueue($hook) {
if( 'edit.php' != $hook )
return;
wp_enqueue_script( 'my_custom_script', plugins_url('/myscript.js', __FILE__) );
}
add_action( ...
0
votes
1answer
54 views
Make Database query only when option is updated
Below is a DB query I am using to retrieve values and place them in a WP_List_Table. Values are currently being added by add_option, then those values are converted into a custom database table ...
0
votes
2answers
175 views
In widget, the value of select field doesn't get updated, changes after saving
I'm building a simple widget which will allow the user to select a post among a list of posts.
For some reason, when I select an option, I believe it actually gets selected but the option doesn't ...
0
votes
1answer
346 views
The Correct Way to Use Nonce Field without Settings API
I'm trying to create an admin option page without the Settings API for some reasons. Then if I do so, I've heard that I need to use nonces for security. I'd like to know the correct way to use them.
...
0
votes
2answers
483 views
Efficient way of saving plugin options
I'm considering the saving of options for a plugin I'm developing. The first obvious candidate is the wp_options table.
While reading the Pro WP Plugin Development book I came across this:
Every ...
0
votes
1answer
85 views
Are there risks associated with using wp_options table using wpdb to update theme options
I am making a theme and it has so many options that need to be updated via jquery's ajax.Having looked at ways of updating wp_options via ajax,i have hypothesised that updating the wp_options table ...
0
votes
1answer
198 views
Google fonts dropdown in Options Framework
Is there a way to add a Google Fonts dropdown to the Options Framework panel (http://wptheming.com/options-framework-theme/)
0
votes
2answers
125 views
how to get the post id in the option tag
$term_id .= $_POST['main_brand_id'];
$term = get_term( $term_id, 'state' );
$slug = $term->slug;
global $post;
$args = array( 'post_type' ...
0
votes
2answers
120 views
Multisite Plugin - Access options (wp_options) on child sites
Is there a way I can access the wp_options table of all the child sites? I want to create a multisite plugin that can be setup at the network level and will populate the child site plugins with ...
0
votes
1answer
90 views
How to get values from network settings panel?
I'm using wordpress 3.3. I've created a plugin
My plugin details:
My plugin creates a sub menu under Network settings and create two form fields to define adsense code (200 x 200 ad, 300 x 250 ad).
...
0
votes
1answer
145 views
update_option creates an option, which empties on a blog reload
I am currently writing a plugin that allows all authors to be listed on a page. I've created an options page and wanted to create a function that allows administrators to exclude certain authors from ...
0
votes
1answer
253 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');
...
0
votes
1answer
2k views
Selecting multiple options onclick
I have a bunch of options that I'd like the user to be able to change in bulk. Here's my code example.
When this option selection changes,
<label>Default author</label>
<select ...
0
votes
1answer
214 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 ...
0
votes
1answer
519 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, ...
0
votes
1answer
106 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 ...
0
votes
2answers
497 views
wordpress - php class to add pages and fields in admin panel
im trying to build a little class to help build some simple input fields into a cutom page in the admin panel of wordpress, here's what i've got:
<?php
class create_panel {
public ...
0
votes
1answer
292 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 ...
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. ...
0
votes
1answer
323 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 ...
0
votes
1answer
20 views
wp_allow_comments checking for blacklisted words effectively
I have a big list of prohibited words on the DB. The problem Im running to is that no comment is getting through. They are all getting sent to spam. I was looking at comment.php
and found the ...
0
votes
1answer
20 views
Comment Blacklist
I have a list of words that I placed in my blacklist_key option values update_option( 'blacklist_keys', $words);. But I still can make a comment with such words. Any ideas?
I can't answer my question ...
0
votes
1answer
47 views
Incorporating the Settings API in WordPress Themes - by Chip Bennet
I am using the code by Chip Bennett to create a settings options page for my plugin. The problem is that I am getting a Warning error as indicated below that I cannot figure it out. Any help is ...
0
votes
0answers
9 views
Reuse form function of widget in an option page
Can I reuse the form function of a widget in an option page to use it to store default values for the widget and its shortcode?
0
votes
0answers
33 views
How can I update options with javascript?
I'm writing a plugin with an admin screen. I have a set of radio buttons to select the tabs on the plugin's admin page. I also have a 'last_tab' option that allows the administrator to pick up where ...
0
votes
1answer
24 views
Can I use add_option for a plugin categories and how?
So I am creating my first plugin for positioning ads around my site. I created one separate table where I store ads with all their options, such as position, expire date, active, name, type etc... But ...

