The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
0answers
15 views

Changing the ID of an option - not working (SMOF) [Solved] [on hold]

Recently I decided to use the SMOF Options Framework in my WordPress theme, instead of my own options page. I think that switching it is easy, but I'm having a problem that I can't understand. First ...
0
votes
0answers
18 views

how can I detect that option value has changed?

I am working on a plugin and I want to fire a different action based on each option value change. so how can I do that ? example: $options = get_option('ACP_settings'); if $options['acp-select'] has ...
0
votes
0answers
20 views

Theme Option won't show up in my template

I've modified theme option from wp.tuts tutorials, And when I save the settings, it works. But the settings on the second tabs won't show up in my template. here my first theme option and the second ...
-4
votes
1answer
36 views

Echo get_option displays as text

I am trying to use some code that is stored as a settings option in WordPress. When I try to use the following code below however, it show up as plain text instead of executing. The option I have ...
2
votes
1answer
107 views

“Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin

I am developing a plugin using Tom McFarlin's Boilerplate repository as a template, which utilizes OOP practices. I've been trying to figure out exactly why I'm unable to correctly submit my settings. ...
1
vote
2answers
41 views

How do i save plugin-specific info?

Im currently building a plugin that imports some data from an XML feed. This is all working great. Now i want to add some info, letting the user know when the last import happened. "Last import: ...
0
votes
0answers
17 views

Saving options for the fields on paginated pages

I am working on a WordPress plugin with some options for the fields which are working fine without pagination. I am kind of new to WordPress plugin development. The problem is I added pagination to ...
0
votes
1answer
35 views

Use options to control jQuery plugin

This may be a dumb question, but I've been teaching myself Wordpress and I've been struggling with this for a while. What I want to do is use a Wordpress control panel page to control a countdown ...
0
votes
0answers
21 views

get Options value in “external” page

I've create a really small plugin. This plugin add one filter : add_filter('the_content', 'BlueSteelAPI', 5); BlueSteelAPI is calling my API. I've create an admin page for register the secret key ...
0
votes
2answers
119 views

Warning: Illegal string offset on theme options page [closed]

Im creating custom theme options and Im getting this PHP error: Warning: Illegal string offset in ... on line 75 // adding the page to menu add_menu_page('Theme Options', 'Theme Options', ...
0
votes
0answers
28 views

Options not saving

My options were saving properly then I edited the files and it's not saving anymore. I undo the changes on the files and I'm sure that those were the only files that I edited. One section saved ...
0
votes
0answers
14 views

How to set options on a sub blog in a multisite environment?

How would I set options for a specific multisite blog? Do I switch blogs, call add_option, and then switch back? Also, can I set options for a site if it hasn't been activated yet? Code: ...
0
votes
1answer
30 views

Proper use of option_page_capability_{$page_name}

I am having trouble giving access to an options page to Editors. I am pretty sure I need to use the filter option_page_capability_{$page_name} but it is not working for me. Is there a specific place ...
0
votes
1answer
67 views

How do I setup nested repeatable option fields?

I'm trying to wrap my head around how to create a set of option fields that should be able to repeat for as many times as possible. But I'm having a hard time to figure out how to proceed. Currently ...
0
votes
0answers
54 views

Custom options - register, defaults and delete empty fields (Settings API)

I cant figure out how to register all of my setting fields into 1 database option. Code for my menu page: add_menu_page('Custom options', 'Custom Options', 'manage_options', 'rm_options', ...
0
votes
0answers
44 views

Move one option value into another option

I have 2 existing options that I want to move into an existing 3rd option. What is the best way to go about this? Here's the scenario: I have 2 options in existance: get_option( 'license_key' ) ...
0
votes
0answers
36 views

Adding line to multidimensional array option

I'm building a shipping plugin with a settings page where the user can add boxes with the attributes : Name, Length, Width, Height So far, I have managed to greate an option boxdata[l,w,h] and I have ...
0
votes
0answers
61 views

update_option() updating the option with an empty value?

I have a call to update_option() inside a class which edits some keys from the options array passed to it and then saves the updated array to the database, I don't have any fancy code, the function is ...
0
votes
2answers
48 views

Who To Create Option Page For This Simple Plugin

I know how to write WordPress plugins but I have no idea how we could create an option page for our plugin. I read lot of tutorials but I still have no idea about creating option pages. So just for ...
0
votes
0answers
43 views

Slightly modified options framework Colour picker

I'm using slightly modified options framework for a theme I'm working on, I have used this before with other themes but never had a need to use the colour picker. I need to be able to allow the user ...
1
vote
0answers
53 views

Image upload and other options in the same plugin settings form?

I write a wordpress plugin. My plugin has two options. One is an image upload mechanism and the other is a checkbox. My code is below: <?php /* Plugin Name: Plugin Name Plugin URI: Description: ...
0
votes
0answers
13 views

Using widgets on an options page?

hopefully someone more experienced can help me out with this idea I've got... I'm working on a new theme, and I'd like this to be widgetised. I've done this before using the regular widgets/sidebar ...
0
votes
1answer
23 views

Update Specific Key Value in Complex `wp_options` object

This should b really easy but I can't find reference - easy points for someone! I have an option in my wp_options table, and need to set it via update_option(). I just can't find the correct syntax ...
0
votes
1answer
69 views

How to Clean Options Which is Not in Use from WordPress Options Table?

I first time reached here /wp-admin/options.php in admin panel and not a surprise that there are so many options came from various plugins. Many plugins I am not using today. How can I delete those ...
0
votes
1answer
48 views

How to retrieve the options from this options page?

I like to write a plugin with an options-page from the WordPress-Codex, but I cannot retrieve the options. get_option('your_option'); does not work. Here is the options page code: <?php class ...
2
votes
1answer
80 views

What is an “Options Framework” for Wordpress

I am exploring a couple options frameworks for wordpress like the Redux Framework. As a non-developer interested in maintaining my own Wordpress based web app, when would an options framework like ...
1
vote
2answers
38 views

Can I use a space in an option name/key?

Is there any reason at all that I can't use a space in a WP option name/key? Ex. update_option( 'my option name', 'abc' ); I can't find anything that states I can't, but every example uses an ...
1
vote
1answer
37 views

Include user defined styles without including wp-load

I've looked through the answers on here and none quite match my situation. I have custom CSS that a user can edit and it is saved in the options. I use wp_enqueue_style to include a PHP file with a ...
0
votes
1answer
85 views

Creating option to allow user to select the page my plugin content will display on

I have an options page for my plugin, but cannot seem to figure out how to create an option to allow admins to select a page that will display my plugins content. Does anyone have an example of how ...
1
vote
1answer
94 views

Settings API - how to update multiple 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
3answers
235 views

update_option not working in stand-alone PHP script

I have a standalone PHP script in my WordPress theme's directory that I run once every hour through a cron job (or manually if needed). All other WordPress functions are working except the ...
0
votes
1answer
44 views

Blogname and Blogdescription in Pagelines DMS Options Panel

I am attempting up set up a front end options panel in the pagelines-dms framework, from which users will be able to change the blogname and blogdescription. So far I have set up the form which has ...
2
votes
1answer
93 views

Site Title and Tagline in Pagelines DMS Options Panel

I'm using the Pagelines DMS Theme and I'm wanting to extend the functionality of the front end admin panel. The user(s) I'm building this for would like to be able to edit a few settings directly from ...
0
votes
0answers
125 views

Error: Options page not found when saving my Plugin-Settings

after saving my options for my plugin I am getting the options page not found error. After some research, I found, that I may have forgotten to register my option or registered the wrong one. I ...
0
votes
1answer
57 views

Hook specific functions if on a specific admin page

I am having a problem with my theme's options panel and a plugin. Apparently they don't get along very well. Anyway, I need to hook 3 functions on a specific page when I am in the admin panel. More ...
0
votes
1answer
41 views

Enqueue scripts based on options

What is the best method to enqueue scripts based on options I have? Let's say I have 50 options and for each I need to enqueue a script(some of them might repeat.). Can I have any ...
0
votes
1answer
41 views

how to protect wordpress website

i completed my website but i want to protect my site using login option.when i enter my site its goes to login page if user logged in after home page will display.how can do that if there any ...
0
votes
1answer
24 views

Adding data to options table

I am currently tweaking a plugin so that all "contributors" (here referred to as "players") are automatically subscribed to a forum. I basically want to subscribe everyone with the role of contributor ...
0
votes
1answer
88 views

Displaying shortcode output through Options Framework

I'm hoping someone might be able to help me. I'm using the Options Framework Plugin to customise my site, but I'm having difficulty with using a shortcode in one of the custom fields. I've created ...
1
vote
1answer
100 views

How to add a new plugin page under desired Options page?

Using WordPress Settings API tutorial I created a new custom menu and corresponding sub menus. Each of my menus have a page of its own. I used add_menu_page() and add_submenu_page() for that. (Here is ...
0
votes
1answer
73 views

'all' hook and get_option issue

code listing: http://pastebin.com/0LEqgRUZ I ran into a trouble with my plugin. (It is a class based plugin actually) I'm trying to use get_option function. When I just make ...
1
vote
1answer
58 views

How to cache posts based on $_GET? Option name is too long? Options / transients

I have a search feature set up that is fairly expensive and I want to cache the results, based on the $_get string, like: ...
0
votes
0answers
11 views

Set default Screen Options on theme setup [duplicate]

I took a look around but didn't found an answer, i would to be able to set some default Screen Options in Wordpress backend when my theme is installed, specifically would be able to flag the ...
0
votes
1answer
58 views

Plugin Options not saving options and doesn't work

So I've been making a plugin for wordpress that adds a custom post type for products, which was fairly simple and i made that work. Afterwards I wanted to make a settings page sub menu to the custom ...
0
votes
1answer
21 views

loss of theme options while site deployment in production

i have moved both wordpress folder and the development database on a distant server. Why all my theme options are lost ? where are these options stored if not in wp_options table nor wp_files ?
0
votes
1answer
48 views

Add_menu_page and saving settings

I am working on an WP plugin and have my settings in a created menu page. When I save the page my settings are saved without any problems, but I don't return to the settings page but to a page where ...
0
votes
2answers
85 views

Issue on Checkbox with Custom Option Page

I am trying to use a checkbox on Custom Option page by using Setting API. Every thing works fine at back-end and I can update the checkbox states by registering the settings.But when I would like to ...
0
votes
0answers
37 views

Options not being deletd via ajax in wordpress

I have this fucntion which is called via Ajax to delete an option based on the name passed in. function uncheck_package(){ if(isset($_POST['element_value'])){ $element = ...
0
votes
0answers
131 views

Auto Select Child categories on Multiple Dropdown - Jquery

I am using the wp_dropdown_categories to generate the form and select option, with multiple select jquery plugin. What I want is that, when the user selects the Parent category or (level-1) then the ...
0
votes
0answers
150 views

theme option, jquery isotope set different element size for each post

I use jquery isotope to display posts and custom posts. I want to add in the admin panel, options that allow to choose isotope element sizes. For example, in this panel, I will show all posts and a ...