Posts

WordPress – Check user has specific role

Sometimes you need to check WordPress user role to grant permission to access certain area of a WordPress Website. WordPress doesn’t have a function for checking the user role. Following piece of code lets to you check user has specific role in WordPress.
Read more

Dynamically populate woocommerce product category terms to WordPress navigation menu

Following is a snippet that lets you dynamically populate woocommerce product category terms to WordPress navigation menu. This code only add sub product category to wordpress navigation menu if the woocommerce parent category already exists in wordpress navigation menu.
Read more

Fix : WordPress asking FTP credentials to install plugins on localhost – Ubuntu/Mac

WordPress may ask for FTP credentials to install plugins or update theme or plugins on localhost host. Mostly in Linux based operating system, like Linux, Ubuntu.This issue may be arise in Mac OS too. And you need to enter FTP credentials each and every time to proceed with your install/update.
Read more

Featured Content in Twenty Fourteen

This article describes how to set up Featured ContentFeatured posts in Twenty Fourteen WordPress theme.  Featured post is new feature available in WordPress Twenty Fourteen theme. Featured content allows you to set up either grid view or slide view of posts in you your home page.

Read more