The options tag has no wiki summary.
0
votes
1answer
27 views
Options page for widget
I started developing a plugin which only required a few options. But over time the number of settings grew, and I want to move most of them to a separate page. I've seen quite a few tutorials about ...
1
vote
1answer
32 views
How do I handle multiple Submit buttons in plugin's option page?
I'm developing my first plugin for WordPress and I'm getting a grasp of the whole hook system. I'm now stuck on a (probably) small issue, that I could possibly circumvent, but I'm afraid of coming out ...
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
46 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
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 ...
1
vote
1answer
57 views
Full page (no WP admin menus and options) admin theme options
I'd like to drag and drop functionality into one of the admin pages and I've been wondering about the best way to implement it: an iframe or something else?
What I'd like is: Once the use choose the ...
0
votes
1answer
33 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
1answer
49 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 ...
1
vote
1answer
31 views
Transients API conditional
I have the following transient, but if the user changes the value of $url the transient should not be used. I want to know what is the most appropriate way to use this variable with the transient. ...
2
votes
1answer
41 views
Is there a limit to the number of options you can store in one settings field of wp_options?
I have a theme with an options page. And on that page there are 1083 options. I've noticed that the last 13 are not saving. They were saving at one point, but after I added new options above them, ...
0
votes
0answers
10 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?
2
votes
1answer
55 views
How to store widget fields data as an array?
I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
1answer
33 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
0answers
34 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 ...
-1
votes
1answer
33 views
Integrating CSS Into a WP Function Call [closed]
Below is a code I use to display post views. It is integrated with an options panel which allows users to choose whether to display it.
I would like to integrate the div class .postviews directly ...
0
votes
1answer
26 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 ...
0
votes
0answers
21 views
After added two section to theme options, I can't save the content
I added a section for my options, everything works fine. I added a new section (social) and after that I can't save the content of the "General Options" form. The business section is working. Where is ...
0
votes
1answer
60 views
Option does not save or update upon page refresh
So I managed to get the issue of headers working properly in my theme, but I have a new issue with options though.
I have the three following pieces of code that work in the order I paste them:
...
1
vote
3answers
61 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 ...
0
votes
2answers
73 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
2answers
40 views
Wordpress options text format
Wordpress converts my theme options text with smart quotes.
I know that to remove problem from posts etc:
remove_filter('the_content', 'wptexturize');
remove_filter('the_excerpt', 'wptexturize');
...
1
vote
1answer
23 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") ...
2
votes
2answers
59 views
Plugin options autoloading
In the book 'Professional WordPress Development' I found this tip:
As a rule of thumb, if your options are needed by the public part of the blog,
save them with autoload. If they are only needed in ...
0
votes
1answer
35 views
Caching of SQL queries
Within one plugin file I have several calls to the same option in the database via get_option(). Does WordPress do a database query every time I use get_option()? Would it be better to get the option ...
0
votes
2answers
80 views
Creating on-page options for Custom Post Type
I'm creating a plugin for creating Landing Pages.
I use custom post type and custom fields for the landing pages, but i need to add some on-page options for each entry. For example i need to have a ...
0
votes
2answers
68 views
How to use a newly registered setting with a checkbox and the default value 'true'
I'm currently working on a plugin in which I would like to have a new setting (called 'show_introduction') that has the default value 'true'.
I did this by the following which is hooked into ...
0
votes
0answers
21 views
Referencing a logo image from options panel [duplicate]
I've been toying with wordpress on the ac and I'm in the process of creating an options panel for my themes I hope to one day sell.
I'm struggling to find an answer to a question which I hope you ...
-1
votes
1answer
81 views
Error: options page not found
This error is really well known and every where I look its either I am not doing:
<form method="post" action="options.php">
or I am not registering my options, which is not the case as seen ...
0
votes
1answer
140 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 ...
2
votes
0answers
52 views
Tab from Settings API resetting all options with INSERT INTO
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 ...
3
votes
1answer
57 views
Performance with autoload and the options table
I am playing around with the autoload column of the options table. I didn't find much information about how the autoloaded values are used. I tried a print_r($GLOBALS) and saw that the autoloaded ...
0
votes
1answer
51 views
My first plugin doesn't save the data in options
This is my entire code. It doesn't save the data I enter on the plugin settings page. I don't have a clue on why this happens! Can somebody please help me?
<?php // add the admin options page
...
3
votes
1answer
56 views
Outputting results from select box option in options panel
I'm trying to figure out how to get the results from a select box option and apply them to my theme. When I use a text input or color picker it works fine. But when I use a select box, nothing is ...
0
votes
2answers
242 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
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
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 ...
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
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
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
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 ...
2
votes
1answer
155 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
2answers
112 views
How to store accumulate multiple option values in a single array using Options_API
I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
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
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 ...
1
vote
0answers
85 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
68 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 ...
3
votes
0answers
211 views
How do I extract the Alt Text from an image attachment upload via the Wordpress Options Framework Plugin?
I'm currently creating a custom WordPress theme and using the WordPress Options Framework plugin to make a custom options page for my client. I'm able to easily create an image upload option and can ...
1
vote
3answers
284 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 ...


