The tag has no usage guidance.

learn more… | top users | synonyms (1)

1
vote
3answers
35 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?
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
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 ...
2
votes
2answers
53 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 ...
0
votes
1answer
21 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
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
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
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
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
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
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
38 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
55 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', ...
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
235 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
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
404 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
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) { ...
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
284 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 ...
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 = ...
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 ...
0
votes
1answer
43 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
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 ...
0
votes
1answer
27 views

Options page: values don't show up in dashboard

Following this tutorial (same code as that one) I created an options page that works well, I can retrieve option values from my templates. However when visting the option page in the dashboard, the ...
0
votes
1answer
278 views

How to get options of all active widgets ?

I am currently using a loop that goes trough all sidebars looking for widgets than loop those again in order to get all widgets options. Doing this on add_filter('sidebars_widgets', array($this, ...
0
votes
1answer
34 views

Show the submitted values in the form when validation fails

Currently I do: $options = get_option( 'jons-plugin-options' ); echo "<input id='jons-plugin-options[field-two]' name='jons-plugin-options[field-two]' size='4' type='text' value='" . ...
0
votes
1answer
14 views

Including a custom options page causes “Pages” to disappear from dashboard menu

I've created a custom options page and referenced it through my functions.php file. When i do this, the Pages option is removed from the WP dashboard, almost as if overwritten by the new options page. ...
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
92 views

Add get_option to jquery

I have created a settings page that contains various radio button options for a custom plugin. A radio button I've created is to 'display dots' with the values yes or no. I can get use the value any ...
0
votes
0answers
50 views

How to hide media link to settings?

I want disable MEDIA LINK TO settings for authors. I tried following code, but authors are still able to change settings. add_action( 'print_media_templates', function(){ echo ...
0
votes
0answers
27 views

Extendig Media Manager Image options

Is it possible to extend Media Manager Image advanced options like adding and injecting custom options. In my case I try to add angular directive names <img src="http://lorempixel.com/1000/600/" ...
0
votes
1answer
192 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
49 views

Option page not updating multiple records in settings api

Hi i am new to wordpress plugin development. i have issues with settings api. please help if you can. Below is my problem. function load_plugin() { add_settings_section('plugin_main', ...
1
vote
3answers
143 views

Get all options saved by another plugin

I'm developing a plug-in that adds the possibility to import/export settings from another plug-in. However, I don't have access to the options ids saved by that plug-in. Is it possible to get all ...
0
votes
1answer
46 views

Setting Default Screen Options

Is there a way to set default screen options for a page? Ideally what I want is to be able to set screen options so that say for example, my page attributes, Discussion, and custom fields are visible, ...
0
votes
1answer
33 views

Theme options are they necessary

So I have decided to use wordpress for a site. But just as I begun I realized that I might need options. Things as simple as logo, favicon and possibly some parallax settings. Is it necessary to have ...
0
votes
0answers
35 views

Cannot save select multiple option in my plugin options

I have a select element in my plugin option page, but can't figure out how to save it correctly (all other options are correctly saved and reused). public function ...
0
votes
1answer
191 views

Add a checkbox in plugin options page and make it actually work

My code: function afi_checkbox_field_0_render( ) { $options = get_option( 'afi_settings' ); ?> <input type='checkbox' name='afi_settings[afi_checkbox_field_0]' <?php checked( ...
0
votes
1answer
48 views

Every time I save my plugin options it erases another plugin options

I created two plugins, when I save one settings it completely erases the settings from the other one, and it also happens the other way round. I really don't understand what the issue might be about ...
0
votes
1answer
88 views

Create Array from data in the OPTIONS table

Good Day everyone, I'm trying to create an array from data in the Options table of wordpress. My data all start the same way plugin_order_ and then name of the field information. Is there a way to ...
0
votes
1answer
46 views

Warn user that data may be lost for custom pages

When you edit a builtin field in Wordpress like the title and don't save the cahnges, and attempt to go to another link, a warning alert box comes up stating that "changes may be lost if you navigate ...
1
vote
1answer
31 views

Prepare plugin options for multi-lingual support

I'm looking for a way to make my plugin's options available/translatable across a multi-lingual site. For example, several of my options are text strings that are then used on the front end. echo ...