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

Add login/logout link to WordPress navigation menu using functions.php

WordPress doesn’t have an option to add login or logout links to navigation menu based on user login status. But you can add login/logout link to WordPress navigation menu using funcitons.php. wp_nav_menu_items filter hook helps you to do it from functions.php.
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

Retrieve WP login URL changed using All in One WP Security plugin

Looking for an easy method? Created a php file to retrieve AIOWPS login URL. You can find downloadable link at the bottom of the article. 🙂

Few months ago I had changed my WordPress login URL using All in One WP Security(AIOWPS) plugin. Unfortunately i forgot new login URL. I recovered the login URL from plugin configuration data that stored in options table.

Here am explaining how to Retrieve WP login URL changed using All in One WP Security plugin(AIOWPS).

Follow the steps.

1. Login to your phpmyadmin.

2. Go to wp_options table.
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