How to redirect to another page in WordPress

How to redirect to another page in WordPress

A page can be redirected to a new page or URL. There are different methods to achieve this. In this blog post we will deal with all these methods in details. Use of these methods depends upon different  use cases. Sometimes HTML redirect work perfectly, in some cases JavaScript or PHP. There is a WordPress function which can also be used and I think it is best to use WordPress function. Here are different methods for redirect   HTML Method In this method we will use meta redirect. Add following…

Read More

How to reset WordPress password at Localhost

How to reset WordPress password at Localhost

In this article I will explain steps to  Recover WordPress Admin password at localhost via phpMyAdmin Interface. Resetting password at live server of WordPress Self hosted blogs/websites are easy. What if you forget password of a localhost installation? To reset password at localhost some manual work needed to be done.  On localhost installations WordPress Reset password function don’t send a reset e-mail to your e-mail.Since most default localhost server install has not configured to send a e-mail.   So, How to deal with it? Follow these steps to recover Lost…

Read More

How to resolve: Please register your email IDs used in non-smtp mails through cpanel plugin…

How to resolve:  Please register your email IDs used in non-smtp mails through cpanel plugin…

In recent Cpanel update an Error Message is flashing: Attention! Please register your email IDs used in non-smtp mails through cpanel plugin. Unregistered email IDs will not be allowed in non-smtp emails sent through scripts. Go to Mail section and find “Registered Mail IDs” plugin in paper_lantern theme. What is the issue? Due to issue,  Your PHP forms, mailing scripts will stop working and mail will not delivered in mailbox. For example….. In contact form plugins If we leave the ‘From’ field blank, WordPress automatically sets the ‘From’ as wordpress@yourdomain.com. Same…

Read More

How to run multiple commands in Linux SSH

How to run multiple commands in Linux SSH

To run multiple commands in Linux SSH, all we need a to write a Bash shell script. The shell script execute the commands based on the order in which commands have been written. You can have loops, if else statements etc like any other programming.  For this post I am restricting myself to getting started with a shell script and run few commands. Here are steps to create a simple Bash shell script. Create an empty file using vim. </p> <p>vim test.sh<br /> 0 1 2 vim test.sh Enter Bash…

Read More

How to send mail via SMTP on WordPress sites

How to send mail via SMTP on WordPress sites

Email delivery  is an issue faced by almost every WordPress site these days. Mail services like Gmail, Yahoo etc have tightened the spam filtering mechanism to filter spam. In this post I will explain and go through steps to set SMTP to send mail via a WordPress plugin. It will greatly help in delivery of email in mail boxes. What is SMTP? SMTP is a standard or protocol to send and receive emails. SMTP stands for Simple Mail Transfer Protocol. Send Mail via SMTP There are many plugins in WordPress…

Read More

How to solve Error establishing a database connection in WordPress

How to solve Error establishing a database connection in WordPress

The error “Error establishing a database connection” is very common in WordPress. It literally means there is an issue connecting to database server. This issue may be caused either by wrong info in WordPress code files or Database server is unable to respond to queries sent to them.   Let’s look at all possible reasons one by one. Wrong database server info in wp-config.php file Make a backup of wp-config.php file and look for following details and make sure they are correct. Database name Database username Database password Database hostname As…

Read More

Resolve Warning: htmlspecialchars(): charset `UTF-7′ not supported, assuming utf-8

Resolve Warning: htmlspecialchars(): charset `UTF-7′ not supported, assuming utf-8

I  recently got this warning message on one of WordPress site I am admin at. This error occurred after updating  the WP site to latest version. </p><br /> <p>Warning: htmlspecialchars(): charset UTF-7′ not supported, assuming utf-8 in /home/bookis/public_html/wp-includes/formatting.php on line 3058<br /><br /> 0 1 2 Warning: htmlspecialchars(): charset UTF–7‘ not supported, assuming utf–8 in /home/bookis/public_html/wp–includes/formatting.php on line 3058   Problem htmlspecialchars() is a PHP String function which converts special characters to HTML entities.So once a special character encounters it converts it to a HTML entities. for example: ‘&’ (ampersand)…

Read More