The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
16 views

Widget settings disappear after refreshing page

I am developing a plugin that displays your average Google My Business rating in a widget. Everything works fine, except when I close the widgets page and return to it later (or do a plain refresh) I ...
0
votes
3answers
26 views

wp-config dynamic hostname in WP_HOME and WP_SITEURL

Are there any disadvantages to using the following code to setup WP_HOME and WP_SITEURL in wp.config for both singlesite installs and multisite installs: /** * Site Host URLs */ $hostname = ...
0
votes
1answer
31 views

Wordpress language switcher doesn't work

I am using WordPress version 4.4.2. The problem I am facing is, I can not change the site language form Settings -> General -> Site language. If I change the language and hit save, the ...
2
votes
4answers
44 views

Deploy pre-configured database

I would like to version control my WP sites with git. A big struggle I have with this is: how do you version control options/plugin settings in the database. I would like to don't touch the dashboard ...
0
votes
1answer
34 views

Cannot update WordPress General Settings Site Title and Tagline

I have a WordPress 4.4.2 installation with no SEO plugins at all. The plugins that I do have activated are WooCommerce, WooCommerce Multilingual, and WPML. I am unable to update the Site Title and ...
0
votes
2answers
19 views

Use customizer or sidebar for header settings?

I'm converting html into Wordpress theme. In the header I have a tel number and a button. Both are links, but styled differently. Do you think it would be better to make them a sidebar (widget area) ...
0
votes
0answers
22 views

Upload file via settings page

Question: Is there a secure way to upload files via a plugin settings page? Context: Hello world! A feature of my plugin requires the user to upload one or more files. More precisely, JSON files ...
0
votes
0answers
17 views

option settings styling

I would like to use the safety features of the Settings API while having more control over the styling and order of the settings fields. I wonder if that is possible at all. Let me give you some ...
0
votes
0answers
18 views

Everytime I press Save Settings from a Plugin it redirects to All Settings page

I have developed a settings page for a theme in which I'm working in order to have some options to customize it. Here are all the options and here is the functions.php. I don't know why but when I'm ...
0
votes
1answer
18 views

How to add settings subpage from a plugin to a settings page created in theme?

I'm using add_menu_page(...) from a custom theme and I want to add subpages to that menu with add_submenu_page(...) . If I try to do it from the theme it works as expected but when I try the same from ...
0
votes
0answers
17 views

Register setting not working with multiple checkbox

I created a new setting field with multiple checkboxes in my WordPress admin. However the value of the field new_setting not saved correctly. It should be an array, but after I do ...
0
votes
0answers
27 views

WP_HOME & WP_SITEURL Config

I'm having issues running WordPress on Server 2012 R2 on IIS. I've configured WordPress before on a Home Server before and have it running, but this configuration is a little more difficult/advance. ...
0
votes
1answer
26 views

Display user HTML on website

I have a settings page in Wordpress that lets the Admin enter HTML Code. I want to display this code at a specific page on the website using a shortcode. My problem now is that the shortcode displays ...
7
votes
2answers
155 views

Where to securely store API keys and passwords in WordPress?

I'm looking to use a few APIs and many come with keys, secret keys and passwords required to work. Where in WordPress can you store that information? Assuming anyone can hack your DB is there anyway ...
1
vote
1answer
25 views

Enabling plugin failed because MySQL user do not have CREATE permissions

Has anyone else had this problem? I'm trying to enable SearchWP plugin (but i don't think this is that specific plugin problem, but maybe my settings?) but it gives me the following error: Please ...
-3
votes
1answer
42 views

Woo Commerce Settings for Check-out Form [closed]

I am using Woo Commerce and am trying to change the settings that display the "Need Assistance? Call Customer service @ ....." and "Email then at ..." on the Checkout page: ...
1
vote
1answer
91 views

How to set CORS header?

I have been accessing media images in a Ruby on Rails application via ajax from wordpress 4.2.4. I am getting following error while accessing the image via ajax. XMLHttpRequest cannot load ...
1
vote
1answer
47 views

Settings API - Separating PHP and HTML

I've created a plugin where the settings are configured on different tabs. Each tab saves its settings to a different field in wp_options. The HTML for each tab is separated out into its own file so ...
2
votes
1answer
51 views

Best settings for MySQL to speed up site? [closed]

What are the best settings for MySQL to speed up a WordPress site?
0
votes
0answers
53 views

Option to set static front page disappeared from admin reading settings

Happily coding along all of a sudden I realise my homepage is now showing blog posts and the setting to set a static home page is missing from the reading option (see screen shot). In the database ...
0
votes
3answers
98 views

Misentered the site address url. How to recover? [closed]

I managed to enter a wrong Site Address (URL) on the General Settings page and now I can't even visit the website. I'm doing this on OpenShift/RedHat. How do I recover?
0
votes
0answers
11 views

Tie specific functions to options-update for limiting API requests

I'm coding an update for my Mollie payment gateway plugin for WordPress (for Easy Digital Downloads). The old plugin only performs one API call to the Payment Gateway, when processing a payment. The ...
2
votes
1answer
19 views

Access general settings trough wordpress files

I was reading an article about HTTPS and that you could turn on SSL and HTTPS for Wordpress quite easily. However in the article it said that you should go to Settings > General Settings within the ...
0
votes
0answers
16 views

WordPress Settings API - Create Groups of Settings

I am building a plugin that will utilize the WordPress Settings API for its settings for the first time (I've used option frameworks in the past). I have already created and registered the settings ...
0
votes
0answers
12 views

Prevent a post date being set if the date has already past **or** only allow future dates to be set

How would I prevent a user from setting a post date that is past the current date and time. In other words they can only set the date for the future.
0
votes
1answer
75 views

How To Change Post Author Default?

TL;DR question: How To Change Post Author Default? Original question: How to make admins always post as blogger (blogger set as author), when posting on a bloggers blog? What I want is to either ...
0
votes
1answer
47 views

Delete Transient when clicking 'Save Changes' on options page

I have an options page setup for a ticker tape on a theme I am working on. It has a number of options such as Title, number of posts to display and what categories to display posts from. I have also ...
0
votes
0answers
20 views

Site Language keeps resetting to English in blog options

I have English (United States) and Polish language packs installed in my Wordpress blog network. In these blogs, that uses English language everything is fine. In these, that uses Polish, my Site ...
5
votes
2answers
409 views

No option to allow search engines to index my site in WP 4.3

I have launched a new company website, when I was setting up the wordpress install locally I believe I clicked 'do not allow search engines to index this site' despite only developing offline. Now I ...
0
votes
1answer
54 views

How to activate Markdown in a local installation of WordPress 4.3?

As of version 4.3. it should be possible to activate markdown for my posts and comments (http://news.softpedia.com/news/say-hello-to-wordpress-4-3-489688.shtml). I found a description on ...
0
votes
0answers
83 views

How to add a 'Save Changes' button to this custom options page?

I have recently created a custom options page for my plugin. It has 2 sub menus, one of which doesn't contain any options but that's correct. On the main menu area (where the options are) I have 2 ...
0
votes
0answers
196 views

Dislay Admin Notifications through Ajax

I am writing a plugin that will require its own settings page in the WordPress admin menu settings section. I have done most of it correctly, and I am stuck at one point. I understand that in order ...
0
votes
1answer
37 views

Functions to edit wp-config.php [duplicate]

I am writing a plugin in which I have to start by setting it up before using it. This means I may need to update wp-config.php I know how to edit wp-config.php directly. However the requirement is to ...
1
vote
0answers
15 views

Is there any workaround to a core update still showing after core update if language set to anything other than US English

I build sites typically in UK English, however I typically leave them in US English because if I set system/general/site language to anything other than "English ( United States)" then when I do ...
0
votes
1answer
41 views

update_option_{$option} not showing old value

I have the following bit of code (note, I put the mail() function in only to see what the values are): add_action('init','system_init_actions'); function system_init_actions() { ...
1
vote
1answer
79 views

How do I share plugin settings across wordpress network?

I am using multisites to translate wordpress website and I have plugin https://wordpress.org/plugins/nmedia-user-file-uploader/ Which I want to be accesible from all languages and from all site you ...
0
votes
1answer
44 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 ...
-1
votes
1answer
59 views

get_option return incorrect values

I'm making a Wordpress Plugin, and I'm starting with the Admin Settings page, I have the page setup and in the menu bar, i have also added sections and fields in to the page and they all work fine, ...
0
votes
0answers
17 views

Share options / settings with another person?

When I hand a wordpress website over to someone else, they do not see the same options and settings that I can see - even if we use the same username / login. This often leads to confusion and ...
0
votes
0answers
32 views

Hold a comment in the queue if it contains [X] or more links

I don't understand this option. The English version of the description says: Hold a comment in the queue if it contains [X] or more links The German version says: Einen Kommentar in die ...
0
votes
1answer
41 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
42 views

How do I register a new settings page? [closed]

I need to be able to create a new settings page, one that will act as a list of information for the user. However, I am unable to find how to do this, can someone point me in the right direction for ...
0
votes
0answers
30 views

Settings API retrieving options database information alongside with user information?

I am working with my options table in my database using the Settings API in WP. My code shows data from my form input to be stored in "Kaipo_plugin_options". I want to retrieve that specific options ...
0
votes
1answer
28 views

How do I create settings only used by my theme? [closed]

I have a theme that when installed will check to see if the necessary pages are there and if not they will be created (this is for a website not a blog). I'm trying to create settings that will be ...
1
vote
3answers
187 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
2answers
728 views

How do I use featured images on index.php?

In 'Reading Settings' I have chosen the static-page drop-down menu of a page I created to be the post page. I've put the html, php, and css from my page.php in index.php to style it. I'm unable to ...
0
votes
0answers
376 views

Custom settings page TinyMce: no formatting when echoing value of editor

I have created a custom settings page with a couple of wp_editor() calls on it. When I enter some text in the editor, and format it (e.g. make it bold), and then save it, the value is saved in the ...
0
votes
1answer
50 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 ...
0
votes
1answer
238 views

How to know what submit button the user clicked?

I'm working on my settings page, I want to add two different buttons to the form and do something different depending which the user clicked. The documentation states I can create two buttons like ...
1
vote
1answer
134 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() { ...