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
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
How to work with multiple github account
You have a personal github account and recently join in a new company. Now you need to maintain your official github account. But you want to use two account at the same time from your computer. In this article I will show you how you get this job done. You have your personal SSH key… Continue reading How to work with multiple github account
Setup PHPUnit in WordPress plugin with WP CLI
First time, when I try to setup PHPUnit inside a WordPress plugin, it seems like I can not run test for this plugin. After spending more hours on it, now it seems like its so easy like create a plugin in WordPress. I have learned many things during this process. Like how to create a… Continue reading Setup PHPUnit in WordPress plugin with WP CLI
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
How to install PHPUnit on windows
Installing PHPUnit on Windows operationg system is really painful. I was thinking like the above line last 2 days, since I installed and run phpunit command globally. In order to install it on your local machine, you need to setup composer first. How to install composer on windows is not part of this tutorial. Thats… Continue reading How to install PHPUnit on windows
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
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
Get category details by term ID
In a day to day development process, we need to display category details inside a post card or something else. In order to get single category details by their term ID you need to pass ID in the get_term_by() WordPress function. Below is the example. You need to place single category ID inside that function.… Continue reading Get category details by term ID
Solve no such file or directory problem in WP CLI
We all are used to update all plugins and themes from the admin panel of our WordPress site. It’s so easy. Enter to your dashboard, open plugin page and update individual plugin. Update theme or plugin from WP CLI is also so easy. But at first time, most of the dev face some issue to… Continue reading Solve no such file or directory problem in WP CLI