Entries by Dheeraj Dhawan

How to Unlist your phone number from Truecaller

How to unlist your phone number from Truecaller, it is a popular app that shows you contact details of unknown numbers calling you. So if you don’t want your number listed in Truecaller you can easily remove it. First of all go to https://www.truecaller.com/unlisting add you phone number in the field along with your country […]

Add Custom CSS to WordPress admin dashboard

Using this snippet you can add custom CSS to WordPress admin dashboard. In WordPress admin panel, you can also add CSS code to customize the look and feel of WP Admin Area. You can easily achieve this by creating a simple function and adding it to your current functions file (functions.php). Below is an example […]

How to Create Custom Post type in WordPress

How to Create Custom Post type in WordPress What is Post Type in WordPress WordPress can display many types of content. In wordpress we create “Posts, Pages”, it is also a post type called “post, page” respectively. There are some default post types in wordpress, these are Post (Post Type: ‘post’) Page (Post Type: ‘page’) […]

Bloginfo Function Shortcode

Bloginfo Function Shortcode The bloginfo() function in WordPress gives you access to lots of useful information about your site. Here is the complete list. This can be used inside Page/Post content itself using shortcode, here we can make a shortcode to return the values. Add this functin to your functions.php file in your theme: [php] […]

Disable admin bar from WordPress Site

WordPress by default provide admin bar at the top of the page for logged in users. By using wordpress filtering and hook system, we can disable the admin bar from wordpress site for logged in user. Here is the snippet which will disable admin bar from wordpress site. [php] add_filter(‘show_admin_bar’, ‘__return_false’); [/php] Add this filter […]

How to move a WordPress Multisite from local to Web Server

How to move a WordPress Multisite from local to Web Server. Recently I am working on WordPress Mu (multi site). I install wordpress set up on my local server (xampp) and enables the multi site option from wp-config file by adding the following code. [php] define(‘WP_ALLOW_MULTISITE’, true); define(‘MULTISITE’, true); define(‘SUBDOMAIN_INSTALL’, false); define(‘DOMAIN_CURRENT_SITE’, ‘192.168.0.11’); // replace […]