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')
Attachment (Post Type: 'attachment')
Revision (Post Type: ' Continue reading »
How to Add a Taxonomy Filter to your admin list for Custom Post Type
This tutorial explains you to enable "taxonomy filter" for any of your custom post type you created, in listing view of custom post type. This will allow you to filter the entries of custom post type by the term within a custom taxonomy attached to that post type.
For example, if you have a custom post type called "Books", Continue reading »
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:
Now you can output any of Continue reading »
How to Remove Width and Height Attributes From Inserted Images.
When we upload an image through the WordPress media uploader and then insert it into the tinyMCE editor, it comes with height & width attributes. But if you want to remove the insert action from adding these attributes, you can add this code to you functions.php file or a functionality plugin of your own making:
[crayon-58d55c3 Continue reading »
New look of WordPress 3.8 admin is really exciting. I discovered that the new icons are packaged as an icon font and loaded by default admin the admin panel, so we use these icons with a little
css and markup. Here we use these icons for custom post type.
WordPress 3.8 Icons for your Custom Post Types in the Admin Menu.
There is a new option for menu_icon argument of the register_post_typ Continue reading »
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.
Add this filter into your theme's funtions.php file Continue reading »
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.
After that we need to move the developed MU site on the web server. To move MU site from local to web server Continue reading »
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.
After adding this code, you can also use email as login name. Continue reading »
Previously I wrote Rewriting tips using .htaccess file for URL rewriting.
Common Usage of .htaccess file :
- Authorization, authentication
- Rewriting URLs
- Directory listing
- MIME types
- Cache Control, and many more.
Here is a test to check that .htaccess or mod_rewrite is enabled on any type of hosting whether shared or dedicated.
Now we want to check for mod_rewri Continue reading »
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 generator using Google Chart API.
First of all you need to create two file
- index.php: in the f Continue reading »