The wp-options tag has no wiki summary.
-1
votes
0answers
18 views
common config value for all sites [duplicate]
I want to have global configuration for all sites.
That is, a global configuration value however I can take that value from any blog/site.
configuration is nothing but a URL. Instead of hardcore ...
0
votes
1answer
22 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 ...
8
votes
1answer
121 views
How come `wp_options` table does not have an index on `autoload`?
In the beginning of each page served by WordPress, there is a MySQL call to fetch options:
SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes';
Because there's no index on ...
0
votes
3answers
85 views
Display random image url from list of input values
I have created an options page in my WordPress theme that allows the user to input a url/upload an image to an input field. The field has the name headerimage_options[image] and when it is populated ...
9
votes
1answer
297 views
Using jQuery to delete data stored in wp_options
I wonder if anyone could advise me further on my problem. Part of my plugin stores log files for debugging purposes. I have successfully displayed them in a (div#log) in my admin page using jquery ...
0
votes
0answers
38 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
55 views
accessing wordpress serialized data outside wp
I've never worked with serialized data... I need a little help with how to load "text" widgets title and content in php script outside wordpress...
my script just connects to database (including ...
0
votes
1answer
135 views
Wordpress Options Page not working
So, I need to add a custom options page, and based on as many tutorials I could find, I came up with the following code to create an officers & chairs options page for my group, mainly, so I can ...
0
votes
1answer
78 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 ...
2
votes
1answer
169 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 ...
4
votes
1answer
140 views
What is the advantage of the wp_options design pattern?
As we all know, a design pattern that is used frequently in Wordpress' DB code is the idea of persisting data for a particular object (blog/post/comment), indexed with a particular name or key.
We ...
1
vote
1answer
288 views
wp_user_roles and Advanced Manipulation
I removed a line from my wp_user_roles to manually remove a role I had created and now the sites administration gives me an "You do not have sufficient permissions to access this page." error.
I ...
0
votes
2answers
95 views
Some Plugin Settings Are Kept After Removal and Reinstall of the Plugin
I have uninstalled and then reinstalled all my plugins hoping to restore my WordPress installation to its original state because I have problem with the funtion of RevieAzon plugin.
For example, ...
2
votes
2answers
672 views
Slow Query for the wp_options table
I have been tracking the slow queries log of the WP based site (with the default value of the a long_query_time set to 10), and I have noticed that the following query is often getting logged -
# ...
0
votes
0answers
433 views
Using wp_nonce_field to update multiple fields
I wrote a simple plugin that before now only had one option so the code below calling wp_nonce_field worked fine. However, now that I've had a second option it seems that the code below only allows ...
3
votes
2answers
512 views
How to change option recently_edited?
WP recently_edited option can be very useful - it tracks last 5 files that you've made changes to. Only problem is - well, that's all, 5 files.
What if I've been made numerous changes to Wordpress ...
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
3answers
166 views
Updating wp_options with an array on save_post results in duplicated entries
I'm not entirely sure this is Wordpress' fault, but I figure I'd ask anyway and see if anyone else has experienced any problems like this before.
I'm trying to save an array to a wp_options table ...
1
vote
0answers
38 views
Set $options reference
I am starting up in theme development and i have searched on codex on the topic of setting theme options.This is is what i am talking about,
$options = array (
array( "name" => $themename." ...
0
votes
1answer
104 views
Hiding an added admin page menu using css
I have added an admin page in wordpress but i needed it to be hidden.I added the page successfully like this
function add_admin_page()
{
$themename = 'Cesaro';
$page_function = 'admin_page';
...
0
votes
1answer
87 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 ...
1
vote
2answers
934 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 ...
0
votes
1answer
62 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
50 views
How to programmatically detect how many posts are displayed per page?
Part of a custom post type that I am building needs to simulate page 1 of a category archive. How can I found out how many posts are displayed per page across the WordPress installation? (I assume it ...
0
votes
1answer
45 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
3answers
2k views
Will it break my site if I delete all transient records in wp_options table?
My site currently has an outrageous 500k+ transient records in the wp_options table.
This causes the table to be crashed frequently and so be my site.
I thought transient records will all expired ...
0
votes
1answer
396 views
Should I remove transients from the wp_options table?
I have been doing some cleaning up in the database of one of my WordPress installs, and I noticed that the wp_options table was about 2.1mb, and had 1200 rows. I've gotten it down to around 800 rows, ...
0
votes
1answer
149 views
Multiple options in the options_value field of the wp_options table
I have come across a theme that has a way of having multiple options in the option_value field.For instance,in the theme,one can perform the Create,Read,Uodate and Delete functionalities on such ...
1
vote
1answer
126 views
Deploying Updated or New Plugins That Modify the wp_options Table
I have a WordPress site under local version control with Git. I deploy it to the production server using Capistrano.
For the initial deployment, I manually import the SQL database to the production ...
0
votes
4answers
116 views
How To View Site from Non-Logged-In User's Perspective
I am working on anew blog. I am logged in as administrator, and above every post there is a option to 'edit this entry'.
Can I have WordPress set up so that even is I am logged in as administrator, I ...
0
votes
1answer
864 views
store simple data in get_option()
I am trying to store simple data, a few links inside wp_options. Basically using the following way: update_option( 'simple_links', '<a href="">link 1</a>' );
my question is if it is ...
0
votes
1answer
361 views
Wordpress Plugin Dev: Using array for WP options
I am busy dabbling with writing a WP plugin and hitting a bit of a problem.
I believe its best practice to store wp options to an array rather than individually which is great no probs.
I have two ...
1
vote
1answer
974 views
Working with an Array inside Your Theme Options Array - Multiple Values
I apologize if this is covered extensively elsewhere, I'm not sure how to phrase my searches on the topic.
Basically, instead of the following standard code to store data in WP-options...
$options = ...
8
votes
2answers
790 views
Are all options loaded to memory on each request?
Are all options variables fetched from the database and loaded to cache on each request?
0
votes
2answers
535 views
Problem saving wordpress settings with current version. Is it a bug?
With the current version of wordpress 3.2.1 I am having this kinds of problem. I install wordpress frequently and I did not notice it before 3.2.1
Problem: Not being able to save settings under ...
3
votes
1answer
333 views
How do you permanently remove default rewrite rules from the wp_options table?
We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.).
What's the ...
0
votes
2answers
280 views
Efficiency of wp_options vs a new table
I'm building a WordPress theme framework, that will likely have many options as development progresses.
I found a related question: When is it appropriate to create a new table in the WordPress ...
1
vote
2answers
153 views
Help running a MySQL query to update all wp_#_options tables in a Multisite install
I'd like to run a query through my WordPress database that updates the blog_public values on all individual sites. I'm stuck on how to have the statement look for wp_2_options, wp_3_options, etc.
I ...
0
votes
1answer
193 views
wordpress how to query wp_options table
I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table?
My script already has these resources called...
...
2
votes
1answer
428 views
How to properly sanitize strings for update_option()
I've tried to import an option value via update_options($name, $value) where $value has special characters (like apostrophe's for example) and I've noticed that the apostrophe gets stripped out of the ...
0
votes
1answer
444 views
Decontruct serialized data array from wp_options
I'm trying to decontruct (and recreate) a serialized option value in wp_options called 'my_options'
How would I build the array to recreate this option_value that currently exists for 'my_options'?
...
1
vote
1answer
140 views
Classes and functions involved in serialization and unserialization
I want to know all the classes and functions(individual .php files) in a wordpress installation that handle serialization and unserialization.
0
votes
3answers
495 views
Default plugin config to override wp_options?
I have a few plugins that I always set the configuration for exactly the same way. Every time I create a new site, the same plugins go in, and the same amount of time is needed to set them up.
Would ...
0
votes
1answer
780 views
Plugin to import/export wp_options
I'm considering building a plugin which can export and import a site's custom options settings.
On export, it simply pulls all of the custom options from wp_options and create a zip file of them ...
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.
...
0
votes
1answer
762 views
How do I retrieve multiple values from a multidimensional array in wp_options?
I'm just starting to store data in multi-dimensional arrays in wp_options and I need some help to retrieve some data...
My data is below and is stored as option_name "my_category_fields"
I need to ...
4
votes
1answer
889 views
Best practices for a Style/CSS based theme options page?
I would like to create a theme options page based only on changing the site wide CSS styling. For instance body/container background colors, font-sizes, font colors, etc.
I have accomplished this by ...
3
votes
2answers
2k views
Transient RSS feeds in wp_options not removed automatically?
I just noticed 55.000 entries(!) in my wp_options table. I had not been there for a while.
So I ran:
delete from `wp_options` where `option_name` like '_transient_timeout_rss%'
delete from ...