The tag has no wiki summary.

learn more… | top users | synonyms (1)

2
votes
2answers
1k views

Get category slug and display it on a query_post

I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories . there is two parts to my question - Part A - Get category slug and ...
1
vote
2answers
51 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 ...
0
votes
2answers
80 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
2answers
56 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'); ...
0
votes
2answers
89 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
338 views

Get data from Theme Options and use them into meta options field in custom post type

I want to grab data from my theme options and have to use them in meta option fields in custom post types. I know how to grab theme option data and show them on front pages but don't know how to grab ...
-1
votes
2answers
491 views

What type to upload image within theme options?

I want to get option to change logo within my option theme. I use this code: array("name" => "Upload Logo", "desc" => "Choose an image", "id" => $shortname."_logo_img", ...
2
votes
1answer
136 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 ...
2
votes
1answer
108 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 ...
1
vote
1answer
74 views

Multiple options not staying selected after saving

Problems: The save works, but is only storing one of the options in the database after save. Options not showing as selected after save. The select fields: <select ...
1
vote
1answer
62 views

Admin option sidebar count

I need to add a count number to a option menu item in the admin sidebar. How is this done? I found a similar post: Modifying admin sidebar contents to show pending posts indicator
1
vote
1answer
144 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 ...
1
vote
1answer
39 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. ...
1
vote
1answer
64 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 ...
1
vote
1answer
131 views

API for wp menu hacks

Question changed due to new developments! I was loooking for a way to hack the menu items in the custom menu page to add a "hide" checkbox and other options. The only way I found is to override the ...
0
votes
1answer
120 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
49 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 ...
0
votes
1answer
60 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
44 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
59 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
1answer
40 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 ...
0
votes
1answer
43 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 ...
0
votes
1answer
103 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 ...
0
votes
1answer
216 views

Page Options Saving But Not Updating In Backend

I have created a custom options page for a slider that you can upload slides to. Everything works great except when trying to save the data. It will get saved and I can use it on the front end. But ...
-1
votes
1answer
588 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 ...
1
vote
0answers
26 views

Is there an atomic way to update_option in Wordpress (to ensure data integrity)?

I want to update an option which is an array by adding a new value, but there's no atomicity or guarantee of data integrity. EXAMPLE //Get the option value (an array) $val = get_option( ...
1
vote
0answers
68 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: ...
1
vote
0answers
121 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 ...
1
vote
0answers
258 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 ...
0
votes
0answers
17 views

Sanitize Term Custom Field - apostrophe problem

Alright guys, before posting I've searched the similar questions but I couldn't find the answer. Problem: I've added custom fields to a custom taxonomy, when I'm saving the options using ...
0
votes
0answers
39 views

Is it possible to pass a date from one Advance Custom Fields options page to another?

I have been trying for a week now to figure this out. I have a site that has numerous ACF options pages. On one options page (Trade Show Details) the start and end dates for a trade show are entered. ...
0
votes
0answers
18 views

Apply cropping to custom size from media library

I want to be able to apply a specific crop to the medium size or any other custom image size i define. I want to control the crop as it is controlled in the media library for the thumbnail. I want to ...
0
votes
0answers
28 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
25 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 ...
0
votes
0answers
29 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
0answers
33 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
0answers
35 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
0answers
75 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
45 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
108 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
0answers
68 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 ...
0
votes
0answers
14 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
0answers
167 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
0answers
40 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
166 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
180 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 ...
0
votes
0answers
133 views

WordPress translate text in array, on theme options page

I have create an options page for my theme and it works great. I have also setup the localization for my theme and that also works on the whole theme and on the options page, except for the options ...
0
votes
0answers
133 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 ...