The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
43 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
20 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
12 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
16 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
0answers
14 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
13 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
32 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
19 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
26 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
22 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
42 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
23 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
47 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
26 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
22 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 ...
0
votes
1answer
26 views

Help with SQL query, how to add taxonomie terms with value stored in options?

i need your help in making SQL What i have: custom post type ( company ) taxonomie ( category ) applyed to cpt ( and has ct section select field ) custom taxonomie ( section ) applyed to nothing ...
0
votes
2answers
39 views

My code for creating an admin option doesn't work

I used the code provided in this tutorial to create an option menu in dashboard, but contrary to what was expected, I don't see any new menu in dashboard: <?php add_action('admin_menu', ...
0
votes
1answer
41 views

add function to saving change on Options Pages

i make page like this link and it work fine but i need to run some script after it like editing a file i was add it to function my_function() { //do something } function register_mysettings() { ...
0
votes
1answer
60 views

'delete_option()' only deleting the value, not the key/value pair

Recently a plugin I am developing begun throwing up an error whenever I deleted the plugin options (restored them to default). I'm using the Settings API within the plugin in question, and on another ...
0
votes
1answer
45 views

Using AJAX for dynamic settings pages

I have a settings page like ... add_options_page ( 'XXX', 'XXX', 'manage_options', 'xxx_plugin', 'xxx_options_page' ); function xxx_options_page() { ?> <div class="wrap"> ...
0
votes
1answer
49 views

How to call particular funcion when the check box is checked in plugin options page

I'm new to php and wp plugin development, i just created a simple options page for my test plugin, the options page has only one check box, i don't know how to execute some function when the box is ...
0
votes
1answer
114 views

WP_Editor - Saving Value into Plugin Option - Stripping HTML

I have a wp_editor(); on my plugin settings page. I also have enabled the "Font Size" drop down in TinyMCE. After highlighting text in the wp_editor(); and selecting a font size from the editor's ...
0
votes
0answers
34 views

Trying to change settings -> firefox downloads options.php instead

I just ran into some trouble with my wordpress installation. I tried to change a setting in the backend, but when I hit save, instead of saving my settings, the download dialogue opened; it said I was ...
0
votes
1answer
77 views

wp_login_url not working correctly

I'm working on a project where I need to add a custom link to admin menu, and I'm using the following code for it: $login_url = wp_login_url(); add_options_page('Login', 'Login Page', ...
0
votes
0answers
66 views

How to change the widget's instance settings depending on sidebar

I want my widget to have one default option value in sidebar-1 and another in sidebar-2. How can I do it? I know wp saves widget right after drag and drop it into different sidebar in widget admin ...
0
votes
1answer
54 views

How do I add a value to a wp_options option that is an array?

What is the best way to add an option value to a registered option in wp_options that is an array? With phpmyadmin i see the option_value field is ...
0
votes
0answers
27 views

Saving plugin options page

As I understood, default mechanism of saving options on plugin admin settings page (submitting form to options.php) allows to update only WordPress options (get_option, etc). But I have 2 values to ...
0
votes
1answer
35 views

Changing the layout of a custom options page

I've followed the guide here to create a custom options page for my theme using add_options_page. By default, these are arranged as a list: Ideally, I'd want these options arranged in a grid with ...
0
votes
0answers
17 views

How to create new options within the menu?

I have created a custom menu using the walker class which was fairly simple but for the life of me I can not work out how to add options to the navigation item. For instance I am wanting to make a ...
0
votes
1answer
69 views

Get Content From Blog Page

I have a page that is assigned as the "Blog". What I'd like to allow is the user to add content to this page then display it before the posts show up on index.php. I thought I used to be able to do ...
0
votes
0answers
33 views

Theme options not being sent to Database

Currently working on a little project for a theme, doing this so i can learn the in's and out's of wordpress. So far i've got to the point of adding sections, and fields within those sections. ...
0
votes
1answer
296 views

Custom options in plugin, register_settings not working as no options.php?

I'm having trouble getting a custom plugin to save options, as it cannot find options.php (and I don't know where it's supposed to be) The full code for the plugin: add_action( 'admin_menu', ...
0
votes
0answers
27 views

Random text changing to weird icons in both admin & front end

Has any body had this sort of problem before. The text mainly in input field descriptions turns to weird icons see image. I have deactivated all plugins and changed themes several times but same ...
0
votes
0answers
59 views

Using Wordpress functions in custom PHP file without any output to the page?

I need to use Wordpress functions get_option and update_option in a custom PHP file. However, I also need to be able to redirect using headers at the end of the PHP script. Requiring wp-load.php or ...
0
votes
1answer
19 views

Register a widget area when a theme option has been saved?

Is it possible to register a widget area and sidebars when an option has been selected and saved in a theme options panel? I am using a framework called redux but am not too sure if this can be ...
0
votes
1answer
122 views

options.php problem - data not saved

I've created a custom menu page with some fields. I want to store these settings to use elsewhere. The form with the fields should save and POST data using action="options.php" but every time I hit ...
0
votes
0answers
62 views

Custom options page, add_options_page deprecated?

I'm trying to create a page in my theme to allow users to add generic info (phone numbers etc) I followed a tutorial and thought I had something good but it turns out part of it is deprecated. So ...
0
votes
0answers
61 views

Simple WP Plugin with plugin settings page

I need to create a plugin with only one select on his settings page and save select value. I have a select with all register menus and I can not to save my select value. What am I doing wrong? What ...
1
vote
0answers
53 views

Edit Custom Post Type on Custom Admin Page instead Post Admin

Background: I am still quite fresh to coding and WordPress. For me the best way to understand, is to work on a specific project. Project: I want to build a Customer Relationship Tool for WordPress ...
0
votes
0answers
221 views

Can't use get_option function in PHP file located inside plugin folder

I am currently developing a small plugin which queries an API for some XML data. The XML data is then used to display a page. I wanted to do most of the display and formatting related stuff in ...
0
votes
2answers
323 views

Add Custom Script in Other Plugin's Options page

I am trying to put a custom inline JavaScript is an options page created by a plugin. The page URL is like this wp-admin/admin.php?page=psbg. This is the code I am using to output my script at the ...
1
vote
1answer
37 views

Deletion of shared options using uninstall.php

I'm using uninstall.php for my plugin to delete all the traces my plugin did to a site on uninstall (delete). I did it in a good way, but even after the deletion there are some fields in the options ...
0
votes
1answer
43 views

Is saving multiple options or saving multiple items in one option better?

I have added multiple fields to a custom taxonomy. I followed Pippin's tutorial. This method creates a single option per taxonomy item. The multiple fields are saved in taxonomy_id. I was not sure ...
0
votes
0answers
86 views

Using a dropdown to alter an option value on plugin settings page

I'm trying to implement a dropdown menu on my plugin's settings page. When the user selects a choice from the dropdown and presses the Save Changes button, I need the choice's value to be appended to ...
0
votes
1answer
20 views

Error when renaming option

UPDATE: This error came from WP_DEBUG...of course, embedded_url didn't exist yet. However, when I set the value of $options[embedded_url] using the form, the $options array magically adds both the new ...
0
votes
2answers
38 views

The best place of the code for creating a robots.txt file

I'm using the Option-Tree framework for the options of my theme. Now I want to add the option to create and edit the robots.txt file. First, I have the function to get the content of the file or ...
1
vote
1answer
69 views

Plugin options not being saved or created

Having a lot of trouble with this config page. I have followed the documentation (which was sparse) and done a bit of searching for help. My problem is simple, my config options aren't being created ...
0
votes
2answers
74 views

Access to option page by role/capability

So i've been googling around and i'm trying to figure out a plain simple solution to my problem. I've tried several things but they are simply not working. I just got into WordPress and i have to edit ...
0
votes
0answers
102 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 ...
1
vote
1answer
305 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 ...