Post Type Icons
Does the pushpin not describe your custom post type? Here are hundreds more icons to choose from. Icons are the GPL-compatible Font Awesome Icons . This is the same icon features that comes with SuperCPT 0.2+, but pulled out of the plugin for those crazy birds who don’t use it. This adds a function
Does the pushpin not describe your custom post type? Here are hundreds more icons to choose from. Icons are the GPL-compatible Font Awesome Icons .
This is the same icon features that comes with SuperCPT 0.2+, but pulled out of the plugin for those crazy birds who don’t use it.
This adds a function you can use, pti_set_post_type_icon( $post_type, $icon ); to set your post type’s icon. For instance, pti_set_post_type_icon( 'event', 'calendar' ); . You can also set the global variable $pti_icons as an array of post type => icon names. Using the global variable is safer, since it doesn’t rely on a function (you could of course call if ( function_exists( 'pti_set_post_type_icons' ) ) to be equally safe using the function).
Screenshots & previews.
- 01Upload to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Figure out which icon you want to use. Go to Tools → Post Type Icons page for a reference.
- 04In your theme or a plugin, set the icons in one of the following ways: a. Call the function pti_set_post_type_icon( $post_type, $icon_name ); , e.g. pti_set_post_type_icon( 'event', 'calendar' ); b. Using the global variable $pti_icons , set the array key => value pair such that 'post_type' => 'icon-name' , e.g. $GLOBALS['pti_icons']['event'] = 'calendar';
Frequently asked questions.
Do I have to write code/edit my theme to use this plugin?
For now, yes. The next version will come with a GUI.