Last day one of my client told me his site was hacked. Then I help him removed all malware codes from his site. But today he said the site was hacked again. His hosting provided his some log and pointed out it may cauded by the plugin of RevolutionSlider . Because his site is too old and the plugin is integrated into the theme so he cannot upgrade RevolutionSlider directly, to avoid beening hacked again, I did some small changes to privent the vulnerability.
Sometime you need use a date field to let enter a valid date, to avoid writing many codes yourself you may use WordPress’ date picker, in fact it is the date picker of jQuery. Now let me show you how to add a wordpress date picker field.
Just several lines codes you will have a date pcker field.
You are sure you entered right database name, database user and server but still show error “Error establishing a database connection” on the front, what the reason ? If you met that in a multisite WordPress installation then it may caused by wrong domain name setting in you database.
1. Go to the dabhoboard such as http://localhost/wordpress-401-mu/wp-admin you will see the following screen.
The article will tell you how to check if email address valid. An example of get email address then check by jQuery included. The example support multiple email address entered in one input.
You may want to change user password in your plugin / theme. But you found once you set users’ password with what they entered, the user will be redirect to wp_login.php and ask user to login again, why ? Here tell you how to deal with this.
In some case you want to make the array with a random order so when use open a page it may see different contents. The following content tell you how to make that. In fact it is about how to shuffle PHP array with key.
If you checkbox name is an array with key then you need read the following to get checked values and key pair using jQuery.
If you found there are some spam user roles in your site then you may wish to remove them. Here is the simple way of how to remove wordpress user roles. No need to install any plugin.
When you show a image and a text you may want to vertically align the text in middle in a span tag. Even you have a long sentence.
Codes as the following: