<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Modify Custom Post Type Icons</title>
	<atom:link href="http://shibashake.com/wordpress-theme/modify-custom-post-type-icons/feed" rel="self" type="application/rss+xml" />
	<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons</link>
	<description>Dynamic WordPress Theme</description>
	<lastBuildDate>Wed, 11 Jan 2012 18:50:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Barrett Golding</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-8402</link>
		<dc:creator>Barrett Golding</dc:creator>
		<pubDate>Fri, 18 Nov 2011 15:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-8402</guid>
		<description>Thanks for this tut. With collapsed admin menus the default in WP3.3, custom icons for CPTs become more important (to replace all those push-pins). For multiple CPTs, rather than list all the styles in functions.php, in might be better to call a stylesheet:

&lt;code&gt;
function load_custom_wp_admin_style(){
        wp_register_style( &#039;custom_wp_admin_css&#039;, get_bloginfo( &#039;stylesheet_directory&#039; ) . &#039;/style-admin.css&#039;, false, &#039;1.0.0&#039; );
        wp_enqueue_style( &#039;custom_wp_admin_css&#039; );
}
add_action( &#039;admin_enqueue_scripts&#039;, &#039;load_custom_wp_admin_style&#039; );
&lt;/code&gt;

this stylesheet can serve double-duty for those using TinyMCE&#039;s &quot;Styles&quot; select-list:

&lt;code&gt;add_editor_style( &#039;style-admin.css&#039; );&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for this tut. With collapsed admin menus the default in WP3.3, custom icons for CPTs become more important (to replace all those push-pins). For multiple CPTs, rather than list all the styles in functions.php, in might be better to call a stylesheet:</p>
<p><code><br />
function load_custom_wp_admin_style(){<br />
        wp_register_style( 'custom_wp_admin_css', get_bloginfo( 'stylesheet_directory' ) . '/style-admin.css', false, '1.0.0' );<br />
        wp_enqueue_style( 'custom_wp_admin_css' );<br />
}<br />
add_action( 'admin_enqueue_scripts', 'load_custom_wp_admin_style' );<br />
</code></p>
<p>this stylesheet can serve double-duty for those using TinyMCE&#8217;s &#8220;Styles&#8221; select-list:</p>
<p><code>add_editor_style( 'style-admin.css' );</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ShibaShake</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-3264</link>
		<dc:creator>ShibaShake</dc:creator>
		<pubDate>Mon, 21 Feb 2011 05:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-3264</guid>
		<description>define( &#039;SHIBA_PLUGIN_URL&#039;, WP_PLUGIN_URL . &#039;/my-plugin-directory&#039; );

http://codex.wordpress.org/Determining_Plugin_and_Content_Directories</description>
		<content:encoded><![CDATA[<p>define( &#8216;SHIBA_PLUGIN_URL&#8217;, WP_PLUGIN_URL . &#8216;/my-plugin-directory&#8217; );</p>
<p><a href="http://codex.wordpress.org/Determining_Plugin_and_Content_Directories" rel="nofollow">http://codex.wordpress.org/Determining_Plugin_and_Content_Directories</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukasz</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-3261</link>
		<dc:creator>Lukasz</dc:creator>
		<pubDate>Sun, 20 Feb 2011 14:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-3261</guid>
		<description>where are you defining &quot;SHIBA_PLUGIN_URL&quot; and can you do this with bloginfo template_url?</description>
		<content:encoded><![CDATA[<p>where are you defining &#8220;SHIBA_PLUGIN_URL&#8221; and can you do this with bloginfo template_url?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ShibaShake</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1761</link>
		<dc:creator>ShibaShake</dc:creator>
		<pubDate>Wed, 07 Jul 2010 18:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1761</guid>
		<description>Hi Joss -
Thanks for pointing out the error. It is now fixed. 

Thanks for being a pain ;) and please let me know if you spot more errors.</description>
		<content:encoded><![CDATA[<p>Hi Joss -<br />
Thanks for pointing out the error. It is now fixed. </p>
<p>Thanks for being a pain <img src='http://shibashake.com/wordpress-theme/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and please let me know if you spot more errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joss</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1760</link>
		<dc:creator>Joss</dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:04:43 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1760</guid>
		<description>Also, sorry to be a pain, but you&#039;ve got some screwy PHP in your example!

&lt;code&gt;
function plugin_header() {
	?&gt;
	global $post_type;
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Also, sorry to be a pain, but you&#8217;ve got some screwy PHP in your example!</p>
<p><code><br />
function plugin_header() {<br />
	?&gt;<br />
	global $post_type;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joss</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1759</link>
		<dc:creator>Joss</dc:creator>
		<pubDate>Wed, 07 Jul 2010 13:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1759</guid>
		<description>Great article - for anybody interested in doing a big of Firebugging, it is possible to duplicate the WordPress style of menu-hover icon with pure css.

Investigate how WP handles it - if you&#039;re adding a &#039;podcast&#039; event type, you&#039;ll get a menu with a css class of menu-icon-podcast. Just use CSS to target that, and its hover state, and you&#039;re set.</description>
		<content:encoded><![CDATA[<p>Great article &#8211; for anybody interested in doing a big of Firebugging, it is possible to duplicate the WordPress style of menu-hover icon with pure css.</p>
<p>Investigate how WP handles it &#8211; if you&#8217;re adding a &#8216;podcast&#8217; event type, you&#8217;ll get a menu with a css class of menu-icon-podcast. Just use CSS to target that, and its hover state, and you&#8217;re set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ShibaShake</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1726</link>
		<dc:creator>ShibaShake</dc:creator>
		<pubDate>Mon, 28 Jun 2010 20:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1726</guid>
		<description>Nice alternate way for getting the post_type. Thanks!</description>
		<content:encoded><![CDATA[<p>Nice alternate way for getting the post_type. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: judas</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1720</link>
		<dc:creator>judas</dc:creator>
		<pubDate>Mon, 28 Jun 2010 02:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1720</guid>
		<description>Sorry for commenting twice, but I found an extra bonus. If you simply add something like that:

&lt;code&gt;&#124;&#124; (get_post_type($_GET[&#039;post&#039;]) == &#039;gallery&#039;&lt;/code&gt;

to your &quot;if&quot; statement you get your custom post type icon in your &quot;edit post&quot; screen too, not only when creating new gallery but when editing one.

Again, thanks for pointing it!!!!!</description>
		<content:encoded><![CDATA[<p>Sorry for commenting twice, but I found an extra bonus. If you simply add something like that:</p>
<p><code>|| (get_post_type($_GET['post']) == 'gallery'</code></p>
<p>to your &#8220;if&#8221; statement you get your custom post type icon in your &#8220;edit post&#8221; screen too, not only when creating new gallery but when editing one.</p>
<p>Again, thanks for pointing it!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: judas</title>
		<link>http://shibashake.com/wordpress-theme/modify-custom-post-type-icons#comment-1719</link>
		<dc:creator>judas</dc:creator>
		<pubDate>Mon, 28 Jun 2010 01:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://shibashake.com/wordpress-theme/?p=6100#comment-1719</guid>
		<description>Thank you, very usefull. I really dislike how WordPress manages icons for new custom post types and this saved my day!</description>
		<content:encoded><![CDATA[<p>Thank you, very usefull. I really dislike how WordPress manages icons for new custom post types and this saved my day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 11/42 queries in 0.117 seconds using disk: basic
Object Caching 473/544 objects using disk: basic

Served from: shibashake.com @ 2012-01-14 22:33:49 -->
