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 Favicon icon to the WordPress Admin & Login Pages
Add following in your theme’s functions.php file, or into a custom plugin:
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-58d55be 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 »
Generally we use the worpdress default pagination for our wordpress blog but here I find and write the code for Custom pagination for our blog page. First of all open the functions.php file of the current activated theme of the wordpress. Then add the below code into it as function.
After adding this above code add the created function into your blog page and Continue reading »