The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
14 views

register_settings callback function erases data

I have registered a setting with a callback function: register_setting( 'my-plugin-settings-group', 'notification_email', 'email_validation' ) and callback function looks like: function ...
0
votes
1answer
50 views

Show global Message in User Profiles with admin only Input field in Wordpress Backend

I try to display a piece of text (without plugin) for example "Quote of the day: Some text" on all user profile pages (.../wp-admin/profile.php). This Text should managable/editable from the Profile ...
0
votes
0answers
16 views

Correct way check nonce (security) using old Options API

I am developing plugin for Wordpress. Firstly I started using Settings API it looks good, but it is little bit complex and it doesn't provide the way to handle options manually. I have quite ...
0
votes
1answer
13 views

Make customizer controls get custom setting type value

I've registered a custom setting type to set a site_option rather than option or theme_mod. I've written the appropriate action hooks to make these values save and preview properly, and can easily ...
-4
votes
0answers
27 views

Category Post as Homepage

I have several post categories and I would like to only make on of those categories my homepage. An example would be I have three categories with the following url structure mysite/category/cat1 ...
0
votes
2answers
769 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
1answer
452 views

Setting the uploads directory

So I want to change my uploads directory. I'm able to change it using: add_filter( 'pre_option_upload_url_path', 'wpse_77960_upload_url' ); function wpse_77960_upload_url() { return 'http://...
0
votes
1answer
16 views

Sharing one WordPress installation between several “sites”?

I'm running a VPS with Ubuntu. I've installed the LAMP-stack, and would now like to make a couple of blogs/sites using WordPress. I'm thinking about creating new users for each blog and making a ...
-1
votes
1answer
23 views

Where to adjust presets for slider options “auto rotate” (3, 5, 10, 15 seconds)? [closed]

I’m currently helping somebody out with their wp installation – and we’re a bit puzzled with the presets for a slider / corousel. The theme in use Stockholm, featuring the Visual Composer plugin. In ...
0
votes
0answers
26 views

Retrieve and save values on a single submit

I am new to wordpress development and i am trying to build a simple "Pick Winners" plugin. The concept is that the user can select a form from a dropdown, complete the number (winners) and get random ...
0
votes
1answer
26 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 ...
1
vote
3answers
781 views

Copying theme from Localhost to Live does not copy all theme settings with it?

This has happened on a number of occasions now where I move my site from Localhost to Live environment and the theme settings such as the logo, and other settings are not copied with it, so I am ...
7
votes
2answers
250 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
30 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 ...
0
votes
1answer
38 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 ...
0
votes
3answers
48 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 = $_SERVER[...
2
votes
4answers
47 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 ...
1
vote
1answer
85 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
21 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
28 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 ...
3
votes
1answer
7k views

How to make WordPress use new Upload Path settings in Multisite Setup

I have a site that is setup for WordPress multisite. The main site works, but the subdomains are not functioning as I would like them to. Here are the settings for the main site: Upload Path: ...
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
22 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 ...
-3
votes
1answer
47 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: https://www....
0
votes
1answer
22 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
23 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 var_dump(get_option(...
0
votes
0answers
34 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 ...
0
votes
2answers
2k views

Why I can't change the permalink of this page?

I have the following problem with a permalink: if I open this page (it is implemented as a static page) on my local website: localhost/wordpressAsper/archivio it automatically change it into http://...
1
vote
1answer
113 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 http://...
1
vote
1answer
50 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
53 views
1
vote
3answers
4k views

Display all search results

Is there a way to display all the search results on the search.php? Actually it is displaying only 10 results (as set in WordPress settings > general).
0
votes
0answers
75 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
105 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?
28
votes
5answers
22k views

How to get WordPress Time Zone setting?

Can someone tell me how to get the time zone that is set in the WordPress Admin? For example, if the blog is set to Eastern time, I need this exact string to print out: US/Eastern This is for a ...
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
20 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
19 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
4answers
1k views

Can't get plugin settings page to save data

have a simple plugin that inserts text (a Google ad) partway through the content of a single post. I'm trying to create a settings page that will let users change the ad code, and change after which ...
4
votes
2answers
4k views

Prevent/Disable Automatic Update Check

WordPress automatically checks for updates to itself and all installed themes and plugins. This adds an annoyingly long delay to loading (any) WordPress pages. In only happens once per day and ...
0
votes
0answers
14 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
53 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
90 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
56 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
26 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
481 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
60 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 https://en....
0
votes
0answers
101 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
212 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 ...