How to install Django with MySQL in a Virtualenv on Linux

This tutorial walks you through the steps involved in installing Django along with MySQL on your linux machine. Open up a terminal and follow the instructions below: Prerequisites: Python 2.7/3.4 – Comes

Display BuddyPress friends of friends in a page

Inorder to show buddypress friends of friends in a page/page template, Please follow the steps below. Step 1: Create a page template inside your wordpress theme (/wp-content/themes/your-theme/friendstemplate.php) and paste the following code

How to add buddypress members directory contents in a custom page template

Inorder to add members activity lists in a custom page template without editing the plugin files, Please follow the steps below. Step 1: Create a page template inside your wordpress theme (/wp-content/themes/your-theme/membertemplate.php)

How to add buddypress activity lists in a custom page template

Inorder to add buddypress activity lists in a custom page template without editing the plugin files, Please follow the steps below. Step 1: Create a page template inside your wordpress theme (/wp-content/themes/your-theme/pagetemplate.php)

How to strip/remove all blank spaces at the beginning/end of a search string in WordPress

To remove the blank spaces please follow the below steps. Step 1: Add the below code in your theme’s functions.php file (path: wp-content/themes/your-theme/functions.php): Step 2: In themes file where the search contents

What are WordPress Plugin Coding Standards

1. Unique Prefix If you are starting to write a new plugin or theme, try to use unique prefixes. You should have a unique prefix. It includes function names, class names, global

Detect browser with WordPress function

Unfortunately, there are no WordPress in-built functions to detect browsers. But we can use WordPress global variables. Global variables used for detecting browsers are: $is_iphone (boolean) iPhone Safari $is_chrome (boolean) Google Chrome

How to get the number of active users in WordPress

WordPress has multi-user functionality (WPMU). If we use the multi-site feature in WordPress, sometimes we would need to get the count of active users. WordPress has an in-built function for this usage:

WordPress function to create a directory

If we need to create directories dynamically in themes or plugins, we can use the WordPress function wp_mkdir_p($targetpath). This function will attempt to set the permission on the folders that we specified.

Create custom widgets in WordPress

There are lot of widgets available for different uses: sharing icons, blog categories, post thumbnails etc. Most of the widgets are available in WordPress plugin directory. We can download them and drag