How to Fix: WordPress database error Duplicate entry ‘0’ for key ‘PRIMARY’ for query INSERT INTO `wp_usermeta`

August 21st, 2019 by

Recently, when I was playing with the multisite feature of WordPress I came across this error I understand that there is some problem in the database table wp_usermeta. Well, actually what I was trying to do is to convert my present wordpress single site to multisite. And during this process I suddenly started getting this […]

How to import big MYSQL dump in WAMP Server

May 7th, 2018 by

Hi all When importing big SQL dump in WAMP, phpmyadmin shows an error that it cannot upload such big dump. The easiest solution I found is, just type in the following in your command prompt.. and it’s done. C:\wamp64\bin\mysql\mysql5.7.19\bin\mysql.exe -u root -p {dbName} < {file location} {dbName}: should be replaced with your database name where […]

Creating separate database table for Multisite WordPress

March 28th, 2018 by

Recently, I have been struggling to get this right. Creating a separate database tables for Multisite. Multisite has option for “Network Activate”. When enabling the plugin, it should create a separate database table for each of the site. At the same time we also need to consider that it should be deleted when we “uninstall” […]

New website developed for Orthopedic Surgeon

February 5th, 2018 by

I am thrilled to announce, my latest project of an orthopedic surgeon website is now LIVE. For this website, I have used complete drag and drop mechanism, so that doctor himself will be able to edit any part of his website on his own. Also used various type of keywords so that the website comes […]

How to customize dashboard by removing unnecessary menu or widgets

October 3rd, 2016 by

When creating a user based wordpress website, it is important to remove all the unnecessary information from the website. Although assigning capabilities does most of the job for you. Actually ‘capabilities’ is the most important part because it makes sure that users don’t access pages that they are not supposed to. But coming back to […]

How to add single category posts template to your wordpress theme

September 28th, 2016 by

Recently, I was implementing a private site in wordpress. So, I wanted to give privilege to some users only to be able to read posts under a certain category say¬† ‘news’ . But according to wordpress template hierarchy only categories can have separate templates by using category-{slug}.php But there is a way out for single-{category-slug}.php […]

How to add WPML Language Code to body class

August 20th, 2016 by

In various scenarios it is very much required to show/hide few things in different language using CSS/Javascript. The most handy way I found is to add language code to the body class. But how do we do that? I am using WPML for different languages, so they provide a Simple PHP Code ICL_LANGUAGE_CODE . Add […]