The options tag has no wiki summary.
2
votes
1answer
583 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
2k 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
500 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 ...
2
votes
1answer
156 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 ...
3
votes
2answers
410 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
62 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
1k 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
2answers
1k 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
359 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
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 ...
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 ...
1
vote
2answers
392 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. ...
26
votes
3answers
4k 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
272 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
297 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 ...
4
votes
2answers
12k 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
324 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
133 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
172 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
434 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, ...
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 ...
12
votes
4answers
5k 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
664 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
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 ...
2
votes
1answer
104 views
Best way to Integrate Google Search?
I would like to use Google Search as opposed to the built-in search provided by the Wordpress engine. What would be the best way to integrate Google Search?
6
votes
3answers
798 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
344 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 ...