Query to show related post

We developer survive each and everyday and always spent a lot of time in google to find a simple solution for our day to day problem. Show related post in a single post is one of them. Today I also spent more than one hour in google to find this solution for a custom post… Continue reading Query to show related post

Published
Categorized as Dev, Query

WP CLI : Error establishing a database connection in LocalWP

If you are using localwp for your local WordPress development then you might be face this database error issue at first time in WP CLI connection. Same things happen to me. Thats why I am helping you out. Here is the simple solution. You need to replace your DB_HOST from your wp-config.php file like below.… Continue reading WP CLI : Error establishing a database connection in LocalWP

Run test command with composer

For PHPUnit test, you might have different version for your local dependency and global installation. You might have installed latest version of composer globally and older version of composer for you local project like me. For globally you can run phpunit command from your terminal. But for the local project with different dependency you can… Continue reading Run test command with composer

Setup WordPress using WP CLI

Setup WordPress using WP CLI is very comfortable who use WP CLI in their daily development process. At first you need to have WP CLI installed in you local machine. In order to check, run wp command inside your terminal. Here is what I got running wp command. Now its time play around. Open your… Continue reading Setup WordPress using WP CLI

Published
Categorized as WP CLI

Solve mysql is not recognized as an internal or external command

In command terminal of windows 10, mysql command is not rea By default windows 10 command terminal does not recognize mysql command. You need to add your server mysql path in you environment variable. Go to you server mysql path like mine. Add the above path in you environment variable. If you don’t know how… Continue reading Solve mysql is not recognized as an internal or external command