The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
2answers
402 views

How to create an 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 have read lot of tutorials but I still have no idea about creating option pages. So just ...
1
vote
3answers
37 views

Can we allow users to choose front page from theme options?

I know it's easy to choose Front Static page from settings>reading>front page. However, I am looking for a way to have this feature in theme options. Can we do this?
2
votes
2answers
2k 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 ...
0
votes
1answer
551 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 ...
1
vote
2answers
28 views

Custom plugin: Trying to show saved data on frontend

I'm working on my first plugin and I have made a nice settings page which saves and works. But I have split it to few files and now I can't determine if field is checked.. I have also tried ...
0
votes
2answers
653 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 ...
0
votes
4answers
1k views

Add Option if Not Exists

I need to see if an option, and if does, get the value. If not, I need to add it. The Codex provides: <?php $option_name = 'myhack_extraction_length' ; $new_value = '255' ; if ( get_option( ...
0
votes
1answer
16 views

What should I use instead of get_blog_option?

I am using a plugin that was using get_blog_option and it no longer works. I looked up the call and it doesn't work because it's a wpmu function only. Is there an equivalent method that I can use ...
0
votes
1answer
18 views

Wrong url for the images while using same database for two Wordpress installations

I have revamped the site hosted at https://example.com and trying to run the new version of the site at https://example.com/newsite But i want to use the same database with all the links as ...
1
vote
1answer
471 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 ...
3
votes
2answers
7k 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 ...
2
votes
2answers
54 views

Theme options WP Editor

My text editor in Theme Options doesn't have font color option. How can I add that? I've searched around the web, but no luck. On regular pages and posts I can see the font color option. I'm using ...
5
votes
1answer
2k views

How To Add New Option Types To Option Tree?

I am using option tree in theme mode and child theme mode and I am trying to add new option types. The new option types will be based off of the post-select option type, but will only list posts from ...
6
votes
3answers
4k views

Add on the fly tabs to plugin options

Hi I am building a plugin options page. What I'd really like to do is implement repeatable tabs (which I know is possible with the Settings API), but with a twist I haven't seen in any options panel ...
0
votes
1answer
22 views

update_user_meta add value on the top on existing value

I'm working on a plugin that will allow people to favorite authors on WP site. When you click on Favorite this author button, it will send author ID to below function and save that value in DB. ...
0
votes
3answers
905 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
52 views

Options page textarea to populate custom post select field

I have created a plugin that allows entry of a custom post type. Within that post type I have a select metabox for name. I also have an options page that has a textarea box that has a list of names. I ...
0
votes
0answers
19 views

Custom options for WordPress sidebars

I am curious if it is possible to add custom options for each sidebar on the widgets page. Something like this (the part with the "Mobile" option): I'm having trouble finding a hook or action that ...
0
votes
1answer
15 views

What should I use to store options for a single blog on a network site?

When a user signs up they create a blog. I want to let them set an option that is specific to that blog. When they save that option should I use update_option(), update_user_option(), ...
0
votes
1answer
40 views

Is there a wildcard/catchall filter hook?

I would like to filter all the options values, but the option filters are option specific. Is there a way I could do something like add_filter('pre_option_*', 'my_check'); ?
0
votes
0answers
11 views

Turn on certain plugin options after plugin install

I'm having issues in finding a way to auto-activate certain plugin settings on plugin activation. So for example , after you install the plugin "Option 1", "Option 2" will be automaticly ON. Here's ...
0
votes
1answer
21 views

Repeatable option fields not saving

I have an options page for a plugin and I'm trying to create a repeatable groups of fields. I have the fields and the JS to clone the fields, but I can't get them to save. /** * Add Mimes * * ...
0
votes
1answer
55 views

Custom Fields as Post Type Options

Im using a theme for vehicle listings and the WPUF Pro plugin for frontend submitting. WPUF plugin automatically reads the taxonomies of themes post_type (vehicle), but the theme got vehicle ...
0
votes
1answer
33 views

Two settings_fields in one form

I am trying to add my own plugin option to the Easy digital downloads plugin. The sample code is here: http://docs.easydigitaldownloads.com/article/383-automatic-upgrades-for-wordpress-plugins I ...
8
votes
2answers
5k 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
45 views

Adding option values as an array using a multi selectable select box

I have a plugin I'm developing. As part of its functionality I need to set up an option group and specify an option var for that group: function swcs_settings() { register_setting( ...
0
votes
1answer
39 views

Can i add wordpress editor to my custom theme option? [closed]

I want to add wordpress default editor to my custom theme option editor, recently i have used textarea but this doesn't support for html format ! // Start Booking Section array( ...
1
vote
0answers
56 views

get_option & update_option for multiple input fields with same name

<ul> <?php $vArgs = array( 'posts_per_page' => -1, 'offset' => 0, 'order' => 'DESC', 'orderby' => 'date', ...
-2
votes
2answers
1k views

I don't have permission to save the theme options I created myself?

I created an option panel following a tutorial. But each time I try to save the settings I get the following: You do not have sufficient permissions to access this page. Any suggestions to fix ...
0
votes
0answers
19 views

Panel displays the name of the selected category

I select a category to display the settings panel characteristic form of the contents of a box. I added the following code to display the name of the category and content as I put it. The problem is ...
0
votes
0answers
33 views

update object options on option form

I have an object on an option called 'option_voc'. Now I would like to update only one field of this object through form i created on menu page i created (The plugin's settings page). I do not find ...
0
votes
0answers
26 views

Send post via XMLRPC with open comment

I'm trying to send post via xmlrpc to wordpress but I don't know how to send comment_open to the wordpress. Is there any options to do so? I read the documentation but didn't find any option regarding ...
2
votes
2answers
237 views

how to update serialized options programatically?

I want to automate updating plugin options. There are some things that I repeat a lot. With wp-cli I know I can update simple options like this: php wp-cli.phar option update blog_public 1 ...
0
votes
1answer
195 views

Checked() function on a multidimensional array

I am generating checkboxes dynamically on one of the option pages. This the code that I'm using to create multiple checkboxes: <?php foreach($shopCategories as $shopCategory) { ?> <input ...
0
votes
1answer
105 views

Multiple wp_options tables to share content across installs

My application has >10 user_roles, each able to perform completely different tasks, provided with an custom backend and no access to wp-admin. The extra functionality each user_role gets to use is ...
0
votes
1answer
412 views

What is the purpose of the option name hack_file in the options table?

I was looking at the options table in a WordPress install and noticed an option name hack_file. At first I thought the site was compromised and then realized it is a default option ...
0
votes
2answers
349 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 ...
0
votes
0answers
35 views

How to create a new database table whenever user changes options

I'am new to wordpress plugin development and I'am stuck in developing menu for my plugin. By going through documentation and many sites i created following menu. But i want to create a new table in ...
0
votes
0answers
43 views

How to sanitize an input array to save in options?

I want to santize a category IDs list before updating it, how this should be done. This is how I'm doing: $categories = get_categories(array('hide_empty'=> 0)); foreach($categories as $category) { ...
14
votes
2answers
3k 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?
1
vote
1answer
1k 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
0answers
17 views

Theme settings are not shown on the settings page Help

My problem is that my changes are not displayed on the Theme settings page. Can anyone help me? The site is Materialize-wordpress.com Here is the code: <?php add_action( 'admin_init', ...
0
votes
0answers
292 views

Saving plugin settings - ERROR: options page not found

I've created a form for my plugin settings and set the action attribute of the form to "options.php" but when I submit the form I get "ERROR: options page not found." add_action('admin_menu', ...
0
votes
1answer
53 views

Use get_option with $emailTo on contact page

I have created a contact page, and all I want is to make the variable $emailto be dynamique. What i mean is i have an option page on the backend and I want to let administrator change the contact ...
6
votes
5answers
6k 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 ...
0
votes
0answers
116 views

wp_editor content in plugin options page

Hi I'm writing a plugin it involves the site builder / user adding content via wp_editor this content is then saved and submitted via a submit_button. I've wrapped the editor in form action = ...
2
votes
3answers
1k 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

Cannot save using register_setting

I am adding an option field to the 'general options' page in WordPress. I cannot get WordPress to save the field. Cannot figure out what I am doing wrong. function add_banner_options() { ...
1
vote
1answer
192 views

get_option() is not working even db contains the corresponding option_name and option_value

First of all, this is not a plugin specific problem. I wonder why this might happen? I am using @bainternet's Tax Meta Class for saving Taxonomy Meta using the options table. I uploaded my contents ...
1
vote
1answer
34 views

Plugin options, presets and filters : can you help me improve my workflow?

I'm building a plugin and I have hard time handling options on it. I already did try several ways but I think i'm stuck on a structural problem here. I would like to have your input on all of this ...