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

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

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. [crayon-5a176101134a000174

WordPress login with Email

Wordpress login with Email: Wordpress is provinding login using Username by default. Sometimes we require userlogin by email also. So here is the code snippet, put this snippet into your current activated themes functions file. [crayon-5a17610113c9e438971365/] After adding this code, you c

Check .htaccess is working or not on server !

Previously I wrote Rewriting tips using .htaccess file for URL rewriting. Common Usage of .htaccess file : - Authorization, authentication - Rewriting URLs - Blocking - Directory listing - MIME types - Cache Control, and many more. Here is a test to check that .htaccess or mod_rewrite

QR Code generation using Google Chart API

These days QR Code has become more and more popular as it capture all the information using a Smart Phone. QR codes can be used in Google's Android operating system and iOS devices (iPhone/iPod/iPad), as well as by using 3rd party barcode scanners. So here I am going to tell how to build QR Code