The options tag has no wiki summary.
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.
...
1
vote
2answers
61 views
Wordpress DB: options-table –> 32 gzipcompression?
I just wondered what this row in the Wordpress Database refers to?
32 gzipcompression 0
I stumbled upon it in the WP options table. What if I set the value to 1.
I do already have ...
0
votes
2answers
42 views
Is there any other place - besides a theme, a plugin, or a mu-plugin - that an option page might conceivably be used?
I'm creating a helper class for simplifying the creation of an option page in admin that could conceivably be used in a theme, a plugin, or a mu-plugin. I'm trying to make the class as easy to ...
0
votes
1answer
203 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
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
55 views
Ways of dealing with nested arrays within option
I stumbled upon one problem regarding too complicated(at least in my point of view) data structures stored in option field.
Right now I have an array of collections and within each other there is ...
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( ...
2
votes
1answer
158 views
Site Title and Tagline in Theme Options Page
I'm using the Options Framework Theme to put together an options page. 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 ...
0
votes
1answer
65 views
Filtering a Database Query
In a WP_List_Table example I'm using, I am seeing how to make a general query to the wp_options table in the Wordpress database.
For example, $query = "SELECT * FROM $wpdb->options";
I also see ...
0
votes
1answer
55 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 ...
1
vote
0answers
87 views
How to store options in an array
I am creating a custom table to display selected options for a page called "Testimonials". The user will enter their options on a "manage testimonial settings" page, and then those options will ...
0
votes
1answer
70 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 ...
1
vote
2answers
36 views
options creation for plugins
I am new to wordpress and learning to create plugins.
I want to know how wordpress itself create options in 'wp_options' table for plugin during plugin installation or activation?
How wordpress decide ...
6
votes
3answers
801 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 ...
1
vote
3answers
292 views
How does object caching work?
I'm looking for a definitive answer here. When object caching is enabled, where do options and transients end up living?
By default, both are stored in the database. But I've heard some references ...
0
votes
0answers
16 views
How to I include theme options into my custom stylesheet? [duplicate]
Possible Duplicate:
How can I use WordPress functions in my stylesheet?
I'm brand new to using the options framework, and I can't quite figure out how to get the selected options to output ...
2
votes
2answers
139 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 ...
0
votes
1answer
30 views
Plugin options page - save two related options as one entry
I created an options page for my plugin where the user can specify image dimensions which will be saved for later use. So far the image dimensions are entered by the user in one input field like ...
0
votes
1answer
65 views
populate array with posts
I want to generate an array of custom post types to add it to a options array.
I'm doing this to show a checkbox group populated with custom post type.
I have this array:
'options' => array (
...
0
votes
2answers
65 views
update_option using variable name
Title may not be clear but I'm using update_option($my_option, $new_order); and for some reason it would not work but if instead I change to update_option('my-option-name' $new_order); it works.
I ...
0
votes
2answers
116 views
Add Option if Not Exists
I need to see if an option, and if does, get the value. If not, I need to add it.
The Codex provides:
<?php
$option_name = 'myhack_extraction_length' ;
$new_value = '255' ;
if ( get_option( ...
1
vote
1answer
225 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 ...
0
votes
2answers
58 views
How much string content can I store in an option?
I am about to create a new plugin that fetches remote content and stores it locally for use on the WP website. I have a free plugin that does this with twitter and tweets, and I store a JSON file in ...
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 ...
6
votes
1answer
65 views
Is it safe to store a user setting you don't want the user to ever modify as a user option?
I have added some custom user options to the profile page on my site, and most are all OK for the user to modify themselves. These options live in their own section. The users have read access and ...
0
votes
2answers
380 views
Add option to “Gallery Settings” section
I want to add a option to the "Gallery settings" (when you insert a gallery into a post).
I once found some code on how to do this, but unfortunately I can't find it anymore.
I can't even remenber if ...
1
vote
1answer
455 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()
{
...
32
votes
6answers
4k 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 ...
0
votes
1answer
53 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 ...
1
vote
1answer
65 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 ...
0
votes
1answer
194 views
help using get_option
I got some code from this site which is going to work great for me. If ound it in another post. What I have modified it to do is add a text box in the category edit area so that the user can input the ...
3
votes
2answers
603 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 ...
0
votes
2answers
179 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 ...
1
vote
1answer
22 views
Editing options pages?
I'm trying to find a way of adding a single checkbox to one of the existing options pages, most likely options-reading.php programmatically. Unfortunately, I haven't found any good references on this. ...
0
votes
1answer
349 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.
...
1
vote
1answer
45 views
How to Call pages from a Options Panel
Need a little bit of help here. I am adding this dropdown to my options panel. However, when I call my option in my template. It does not display
Here is the function for the dropdown:
function ...
0
votes
1answer
174 views
Plugin options will not save in database
I'm not sure what's happening here, since this has worked in another plugin I've created. I'm simply trying to store data in the options table.
Here is the code I'm using:
function on_myplugin_start ...
0
votes
2answers
506 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 ...
3
votes
2answers
590 views
Add on the fly tabs to plugin options
Hi I am building a plugin options page. What I'd really like to do is implement repeatable tabs (which I know is possible with the Settings API), but with a twist I haven't seen in any options panel ...
1
vote
2answers
878 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 ...
3
votes
4answers
2k 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 ...
2
votes
2answers
189 views
Separate backend “Widgets” page for each language
Im currently trying to make my backend work with multiple languages.
Im using qTranslate as my translation plugin.
So far I have accomplished a custom option page with multi-language support. When ...
0
votes
1answer
149 views
Settings API - how to update 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
0answers
145 views
WP-Super-Cache - generate cache programmatically
I wonder if there is possibility to generate WP-Super-Cache programmatically after the cache is being purged ( after I have published a new post ). I thought of writing some kind of crawler that will ...
1
vote
1answer
174 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:
...
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
43 views
wordpress theme option in other templates
I am using word press theme option panel and using those in my header.php without any issues, code as follows...
<?php
// loading theme options. used in header.php
global $options;
...
1
vote
2answers
142 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", ...
