Archive for the ‘Snippets’ Category

Add a Taxonomy Filter to your admin list for Custom Post Type

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

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: [crayon-5973631122c12843502486/] Now you can output any of Continue reading »

How to Remove Width and Height Attributes From Inserted Images in WordPress

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-5973631 Continue reading »

WordPress 3.8 Icons for your Custom Post Types in the Admin Menu

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 »

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-59736311241d7224331143/] Add this filter into your theme's funtions.php file Continue reading »
Back to Top