<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>WordPress Quick Tips</title>
	<atom:link href="http://wpquicktips.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpquicktips.wordpress.com</link>
	<description>A blog about quick tips for WordPress. How-to&#039;s, guide and tutorials</description>
	<lastBuildDate>Fri, 27 Jan 2012 08:36:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='wpquicktips.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>WordPress Quick Tips</title>
		<link>http://wpquicktips.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://wpquicktips.wordpress.com/osd.xml" title="WordPress Quick Tips" />
	<atom:link rel='hub' href='http://wpquicktips.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Remove title attribute from WordPress images</title>
		<link>http://wpquicktips.wordpress.com/2012/01/05/remove-title-attribute-from-wordpress-images/</link>
		<comments>http://wpquicktips.wordpress.com/2012/01/05/remove-title-attribute-from-wordpress-images/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 18:05:06 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[the_post_thumbnail]]></category>
		<category><![CDATA[title attribute]]></category>
		<category><![CDATA[wp_get_attachment_image]]></category>
		<category><![CDATA[wp_get_attachment_image_attributes]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=272</guid>
		<description><![CDATA[I use default WordPress functions to insert images very often. Functions like the_post_thumbnail or wp_get_attachment_image are used in almost every project I do. By default WordPress adds a title to all of the images printed by these functions, and the title usually is nothing more than the filename. The result is a lot of title attributes which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=272&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I use default WordPress functions to insert images very often. Functions like <em>the_post_thumbnail</em> or <em>wp_get_attachment_image</em> are used in almost every project I do.</p>
<p>By default WordPress adds a title to all of the images printed by these functions, and the title usually is nothing more than the filename.</p>
<p>The result is a lot of title attributes which are pretty much useless and just distracting (while hovering an image for instance).</p>
<p>But thankfully WordPress filters saves us as they often do.</p>
<p>Filter <em>wp_get_attachment_image_attributes</em> and unset the title attribute.</p>
<p><pre class="brush: plain;">function mytheme_wp_get_attachment_image_attributes( $attr ) {

unset($attr['title']);

 return $attr;
}
add_filter( 'wp_get_attachment_image_attributes', 'mytheme_wp_get_attachment_image_attributes' );</pre></p>
<p>After that you should be set!</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/intermediate/'>Intermediate</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/filter/'>filter</a>, <a href='http://wpquicktips.wordpress.com/tag/filters/'>filters</a>, <a href='http://wpquicktips.wordpress.com/tag/the_post_thumbnail/'>the_post_thumbnail</a>, <a href='http://wpquicktips.wordpress.com/tag/title-attribute/'>title attribute</a>, <a href='http://wpquicktips.wordpress.com/tag/wp_get_attachment_image/'>wp_get_attachment_image</a>, <a href='http://wpquicktips.wordpress.com/tag/wp_get_attachment_image_attributes/'>wp_get_attachment_image_attributes</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=272&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2012/01/05/remove-title-attribute-from-wordpress-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Different headers and footers using the $name argument</title>
		<link>http://wpquicktips.wordpress.com/2011/12/28/different-headers-and-footers-using-the-name-argument/</link>
		<comments>http://wpquicktips.wordpress.com/2011/12/28/different-headers-and-footers-using-the-name-argument/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 16:57:27 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[get_footer]]></category>
		<category><![CDATA[get_header]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=268</guid>
		<description><![CDATA[Both the_header and the_footer functions except a $name argument which allows you to specify other headers than the default header.php and footer.php. Example: WordPress would then look for header-special.php in your theme directory. If you want to specify a different footer file it works the same way. I rarely see it used but it can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=268&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Both <em>the_header</em> and <em>the_footer</em> functions except a <em>$name</em> argument which allows you to specify other headers than the default <em>header.php</em> and <em>footer.php</em>.</p>
<p>Example:</p>
<p><pre class="brush: plain;">&lt;?php get_header( 'special' ); ?&gt;</pre></p>
<p>WordPress would then look for <em>header-special.php</em> in your theme directory. If you want to specify a different footer file it works the same way.</p>
<p>I rarely see it used but it can be quite useful, perhaps if you want a &#8220;clean&#8221; header with just the &lt;html&gt; and &lt;head&gt;.</p>
<p>Read more in the WordPress Codex:<br />
<a href="http://codex.wordpress.org/Function_Reference/get_header" target="_blank">get_header</a><br />
<a href="http://codex.wordpress.org/Function_Reference/get_footer" target="_blank">get_footer </a></p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/beginner/'>Beginner</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/get_footer/'>get_footer</a>, <a href='http://wpquicktips.wordpress.com/tag/get_header/'>get_header</a>, <a href='http://wpquicktips.wordpress.com/tag/templates/'>templates</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/268/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/268/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=268&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/12/28/different-headers-and-footers-using-the-name-argument/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Modifying the billing and shipping fields in Jigoshop</title>
		<link>http://wpquicktips.wordpress.com/2011/11/17/modifying-the-billing-and-shipping-fields-in-jigoshop/</link>
		<comments>http://wpquicktips.wordpress.com/2011/11/17/modifying-the-billing-and-shipping-fields-in-jigoshop/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 15:50:32 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[jigoshop]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=260</guid>
		<description><![CDATA[I recently discovered Jigoshop. A very nice, lightweight and well coded e-Commerce plugin for WordPress. After some experimenting I found that the checkout and it&#8217;s fields for billing and shipping information where defined in the code and could not be modified in the settings. It was a problem since they had set State as a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=260&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently discovered <a href="http://jigoshop.com/" target="_blank">Jigoshop</a>. A very nice, lightweight and well coded e-Commerce plugin for WordPress.</p>
<p>After some experimenting I found that the checkout and it&#8217;s fields for billing and shipping information where defined in the code and could not be modified in the settings.</p>
<p>It was a problem since they had set State as a required field, which most countries outside of US don&#8217;t have. In their forums there were <a href="http://forum.jigoshop.com/discussions/questions/338-removing-shipping-adress-and-required-fields-in-an-update-save-manner" target="_blank">many</a> <a href="http://forum.jigoshop.com/discussions/questions/230-no-state-county-field" target="_blank">threads</a> <a href="http://forum.jigoshop.com/discussions/questions/183-removing-fields" target="_blank">regarding</a> this subject, and the answer the support staff gave was to modify the plugin files (!!) which you never should do.</p>
<p>So here&#8217;s an update safe to do it.</p>
<p>Create a plugin or add this to your theme&#8217;s <em>functions.php</em></p>
<p><pre class="brush: plain;">

function jigo_mod_wp() {
 if ( class_exists( 'jigoshop_checkout' ) ) {
 $billing_fields = array(
 array( 'name'=&gt;'billing-first_name', 'label' =&gt; __('First Name', 'jigoshop'), 'placeholder' =&gt; __('First Name', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-first') ),
 array( 'name'=&gt;'billing-last_name', 'label' =&gt; __('Last Name', 'jigoshop'), 'placeholder' =&gt; __('Last Name', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-last') ),
 array( 'name'=&gt;'billing-address', 'label' =&gt; __('Address', 'jigoshop'), 'placeholder' =&gt; __('Address', 'jigoshop'), 'required' =&gt; true ),
 array( 'name'=&gt;'billing-city', 'label' =&gt; __('City', 'jigoshop'), 'placeholder' =&gt; __('City', 'jigoshop'), 'required' =&gt; true ),
 array( 'validate' =&gt; 'postcode', 'format' =&gt; 'postcode', 'name'=&gt;'billing-postcode', 'label' =&gt; __('Postcode', 'jigoshop'), 'placeholder' =&gt; __('Postcode', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-first') ),
 array( 'type'=&gt; 'country', 'name'=&gt;'billing-country', 'label' =&gt; __('Country', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-last') ),
 array( 'name'=&gt;'billing-email', 'validate' =&gt; 'email', 'label' =&gt; __('Email Address', 'jigoshop'), 'placeholder' =&gt; __('***@yourdomain.com', 'jigoshop'), 'required' =&gt; true )
 );
 jigoshop_checkout::instance()-&gt;billing_fields = $billing_fields;

 $shipping_fields = array(
 array( 'name'=&gt;'shipping-first_name', 'label' =&gt; __('First Name', 'jigoshop'), 'placeholder' =&gt; __('First Name', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-first') ),
 array( 'name'=&gt;'shipping-last_name', 'label' =&gt; __('Last Name', 'jigoshop'), 'placeholder' =&gt; __('Last Name', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-last') ),
 array( 'name'=&gt;'shipping-address', 'label' =&gt; __('Address', 'jigoshop'), 'placeholder' =&gt; __('Address', 'jigoshop'), 'required' =&gt; true ),
 array( 'name'=&gt;'shipping-city', 'label' =&gt; __('City', 'jigoshop'), 'placeholder' =&gt; __('City', 'jigoshop'), 'required' =&gt; true ),
 array( 'validate' =&gt; 'postcode', 'format' =&gt; 'postcode', 'name'=&gt;'billing-postcode', 'label' =&gt; __('Postcode', 'jigoshop'), 'placeholder' =&gt; __('Postcode', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-first') ),
 array( 'type'=&gt; 'country', 'name'=&gt;'shipping-country', 'label' =&gt; __('Country', 'jigoshop'), 'required' =&gt; true, 'class' =&gt; array('form-row-last') ),
 array( 'name'=&gt;'shipping-email', 'validate' =&gt; 'email', 'label' =&gt; __('Email Address', 'jigoshop'), 'placeholder' =&gt; __('***@yourdomain.com', 'jigoshop'), 'required' =&gt; true )
 );
 jigoshop_checkout::instance()-&gt;shipping_fields = $shipping_fields;
 }
} add_action ( 'wp', 'jigo_mod_wp' );

</pre></p>
<p>Modify the array and add/remove the fields you want. Some of the items have an array item called <em>required</em> which controls whether a field is required or not.</p>
<p>Always fun to see great plugins that also are pluggable which is a MUST for it to be useful for developers.</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/advanced/'>Advanced</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/checkout/'>checkout</a>, <a href='http://wpquicktips.wordpress.com/tag/jigoshop/'>jigoshop</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/260/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/260/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/260/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=260&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/11/17/modifying-the-billing-and-shipping-fields-in-jigoshop/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>WordPress Coding Standards</title>
		<link>http://wpquicktips.wordpress.com/2011/11/11/wordpress-coding-standards/</link>
		<comments>http://wpquicktips.wordpress.com/2011/11/11/wordpress-coding-standards/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 13:14:30 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[codex]]></category>
		<category><![CDATA[coding standards]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=251</guid>
		<description><![CDATA[In a collaborative programming environment it is always good to have a set of coding standards that you follow. Thankfully, WordPress have coding standards which all developers should try to follow. If you peek at the WordPress source you will notice that (almost) all code follow this standard, which makes it very easy for other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=251&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In a collaborative programming environment it is always good to have a set of coding standards that you follow.</p>
<p>Thankfully, <a href="http://codex.wordpress.org/WordPress_Coding_Standards" target="_blank">WordPress have coding standards</a> which all developers should try to follow.</p>
<p>If you peek at the WordPress source you will notice that (almost) all code follow this standard, which makes it very easy for other developers to read the code.</p>
<p>Take a look at the section discussing <a href="http://codex.wordpress.org/WordPress_Coding_Standards#No_Shorthand_PHP_tags" target="_blank">shorthand PHP tags</a>, an issue I have <a title="Never use PHP short tags for WordPress development" href="http://wpquicktips.wordpress.com/2010/03/05/never-use-php-short-tags-for-wordpress-development/" target="_blank">written about previously</a>. <a href="http://codex.wordpress.org/WordPress_Coding_Standards#Space_Usage" target="_blank">Space usage</a> is also a very common mistake among developers. The correct space usage can really improve your code&#8217;s readability.</p>
<p>Further reading:<br />
<a href="http://codex.wordpress.org/WordPress_Coding_Standards" target="_blank">Codex: WordPress Coding Standards</a></p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/best-practices/'>Best Practices</a>, <a href='http://wpquicktips.wordpress.com/category/intermediate/'>Intermediate</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/codex/'>codex</a>, <a href='http://wpquicktips.wordpress.com/tag/coding-standards/'>coding standards</a>, <a href='http://wpquicktips.wordpress.com/tag/php/'>php</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=251&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/11/11/wordpress-coding-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Custom Post Type Best Practices</title>
		<link>http://wpquicktips.wordpress.com/2011/11/08/custom-post-type-best-practices/</link>
		<comments>http://wpquicktips.wordpress.com/2011/11/08/custom-post-type-best-practices/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 16:15:33 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[codex]]></category>
		<category><![CDATA[coding standards]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[post types]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=246</guid>
		<description><![CDATA[I have used Custom Post Types in almost every WordPress project I have worked on since the feature was introduced in WordPress 3.0. When collaborating with other developers you also come across some common mistakes, mistakes that I&#8217;ve also made in the past. So I would like to share some things to keep in mind [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=246&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have used Custom Post Types in almost every WordPress project I have worked on since the feature was introduced in WordPress 3.0.</p>
<p>When collaborating with other developers you also come across some common mistakes, mistakes that I&#8217;ve also made in the past. So I would like to share some things to keep in mind when using Custom Post Types.</p>
<p><strong>The <em>$post_type</em> should always be singular</strong></p>
<p>The <a href="http://codex.wordpress.org/Function_Reference/register_post_type" target="_blank">codex</a> does not explicitly say it anywhere, but all the Codex examples use singular names for <em>$post_type</em>. This is probably the most common mistake I see developers make. If you want the new post type&#8217;s URL to have a plural word in it, <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments" target="_blank">you can specify it in the <em>slug</em> argument</a>.</p>
<p><strong>Use a namespace for your post types</strong></p>
<p>This is something that even I haven&#8217;t done. But the codex makes a good point in their own <a href="http://codex.wordpress.org/Post_Types#Naming_Best_Practices" target="_blank">best practices section</a>. A conflict can occur between theme and plugin post types if you use a common word as the post type name and it is not prefixed with a namespace. So for instance if your post type is a product, do not simply name is <em>product</em> but rather <em>yournamespace_product</em>.</p>
<p><strong>Remember the template hierarchy when creating specific post type templates</strong></p>
<p>WordPress <a href="http://codex.wordpress.org/Template_Hierarchy" target="_blank">template hierarchy</a> is great, so please use it! I have seen cases where developers have created a new page with an associated template where they query for the posts instead of simply using the default template file to create an archive page for example.</p>
<p>From the <a href="http://codex.wordpress.org/Post_Types#Template_Files" target="_blank">codex</a>:</p>
<blockquote><p>In the same way that posts are shown on their own page with <strong>single.php</strong>, custom post types will use <strong>single-{posttype}.php</strong> if it&#8217;s available.</p></blockquote>
<p>Same thing applies to <em>archive-{posttype}.php</em>. This <a href="http://codex.wordpress.org/Template_Hierarchy#Visual_Overview" target="_blank">visual overview</a> of the template hierarchy is something I keep referring to.</p>
<p><strong>Adding custom columns to the admin can be easy!</strong></p>
<p>Joost De Valk provides <a href="http://yoast.com/custom-post-type-snippets/" target="_blank">these code snippets</a> that can come in handy when working with custom post types. Often you also have <a href="http://codex.wordpress.org/Taxonomies#Custom_Taxonomies" target="_blank">custom taxonomies</a> or other meta data linked to your post types which you might want to present in the admin. Great post!</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/best-practices/'>Best Practices</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/codex/'>codex</a>, <a href='http://wpquicktips.wordpress.com/tag/coding-standards/'>coding standards</a>, <a href='http://wpquicktips.wordpress.com/tag/php/'>php</a>, <a href='http://wpquicktips.wordpress.com/tag/post-types/'>post types</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=246&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/11/08/custom-post-type-best-practices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>WordCamp San Francisco</title>
		<link>http://wpquicktips.wordpress.com/2011/07/15/wordcamp-san-francisco/</link>
		<comments>http://wpquicktips.wordpress.com/2011/07/15/wordcamp-san-francisco/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 11:42:48 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
		
		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=241</guid>
		<description><![CDATA[This will surely be the event of the year (as far as WordCamp events go). More information here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=241&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This will surely be the event of the year (as far as WordCamp events go).</p>
<p><a href="http://2011.sf.wordcamp.org/">More information here</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/241/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/241/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/241/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=241&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/07/15/wordcamp-san-francisco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Oakwood Creative is hiring a front end developer!</title>
		<link>http://wpquicktips.wordpress.com/2011/06/30/oakwood-creative-are-hiring-a-front-end-developer/</link>
		<comments>http://wpquicktips.wordpress.com/2011/06/30/oakwood-creative-are-hiring-a-front-end-developer/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 17:15:29 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[job]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=234</guid>
		<description><![CDATA[The company I work for is currently hiring a front end developer. So if you&#8217;re located in Stockholm, Sweden or willing to relocate you should definitely check it out! We have put together a small site for you turn into HTML as a work sample, which could be fun as a night activity! More info [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=234&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The company I work for is currently hiring a front end developer. So if you&#8217;re located in Stockholm, Sweden or willing to relocate you should definitely check it out!</p>
<p>We have put together a small site for you turn into HTML as a work sample, which could be fun as a night activity!</p>
<p>More info here:<br />
<a href="http://oakwood.se/jobb" target="_blank">http://oakwood.se/jobb</a> (<a href="http://translate.google.com/translate?js=n&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;layout=2&amp;eotf=1&amp;sl=sv&amp;tl=en&amp;u=http%3A%2F%2Foakwood.se%2Fjobb" target="_blank">English version</a>)</p>
<br /> Tagged: <a href='http://wpquicktips.wordpress.com/tag/css/'>CSS</a>, <a href='http://wpquicktips.wordpress.com/tag/html/'>html</a>, <a href='http://wpquicktips.wordpress.com/tag/javascript/'>javascript</a>, <a href='http://wpquicktips.wordpress.com/tag/job/'>job</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/234/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/234/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/234/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=234&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/06/30/oakwood-creative-are-hiring-a-front-end-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Great Open Graph plugin for WordPress</title>
		<link>http://wpquicktips.wordpress.com/2011/05/18/great-open-graph-plugin-for-wordpress/</link>
		<comments>http://wpquicktips.wordpress.com/2011/05/18/great-open-graph-plugin-for-wordpress/#comments</comments>
		<pubDate>Wed, 18 May 2011 15:59:51 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Beginner]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[meta data]]></category>
		<category><![CDATA[meta tags]]></category>
		<category><![CDATA[open graph]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=235</guid>
		<description><![CDATA[I recently had to add Open Graph meta tags to a site and hoped a plugin could do the work for me. Open Graph is used on several sites, but most prominently on Facebook. I found this great and light plugin to do just what I need and not much more. http://wordpress.org/extend/plugins/opengraph/ I highly recommend [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=235&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently had to add Open Graph meta tags to a site and hoped a plugin could do the work for me. Open Graph is used on several sites, but most prominently on Facebook.</p>
<p>I found this great and light plugin to do just what I need and not much more.</p>
<p><a href="http://wordpress.org/extend/plugins/opengraph/">http://wordpress.org/extend/plugins/opengraph/</a></p>
<p>I highly recommend it since it is very easy to use and very flexible. The description tag for example, defaults to the site&#8217;s description, but I wanted it to display the post excerpt if it was a single post. So I simply filtered the value</p>
<p><pre class="brush: plain;">function mytheme_opengraph_description($desc){
	global $post;
	if ( is_single() )
		$desc = $post-&gt;post_excerpt;

	return $desc;
}
add_filter('opengraph_description', 'mytheme_opengraph_description' );</pre></p>
<p>Very simple!</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/beginner/'>Beginner</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/facebook/'>facebook</a>, <a href='http://wpquicktips.wordpress.com/tag/meta-data/'>meta data</a>, <a href='http://wpquicktips.wordpress.com/tag/meta-tags/'>meta tags</a>, <a href='http://wpquicktips.wordpress.com/tag/open-graph/'>open graph</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/235/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/235/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/235/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=235&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/05/18/great-open-graph-plugin-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove all &#8220;missing&#8221; files from a SVN working copy</title>
		<link>http://wpquicktips.wordpress.com/2011/04/14/remove-all-missing-files-from-a-svn-working-copy/</link>
		<comments>http://wpquicktips.wordpress.com/2011/04/14/remove-all-missing-files-from-a-svn-working-copy/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 09:18:11 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[missing files]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=232</guid>
		<description><![CDATA[After upgrading a local installation of WordPress subversion started complaining about missing files, that were deleted during the upgrade. Since there were a lot of files I searched for an easy way to delete all the missing files at once, and found such a way here. One of the comments mentions that it doesn&#8217;t work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=232&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After upgrading a local installation of WordPress subversion started complaining about missing files, that were deleted during the upgrade.</p>
<p>Since there were a lot of files I searched for an easy way to delete all the missing files at once, and found such a way <a href="http://snipplr.com/view/9997/remove-all-missing-files-from-a-svn-working-copy/" target="_blank">here</a>.</p>
<p><pre class="brush: plain;">svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )</pre></p>
<p>One of the comments mentions that it doesn&#8217;t work with filenames that contains white space, which I haven&#8217;t tested.</p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/misc/'>Misc</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/missing-files/'>missing files</a>, <a href='http://wpquicktips.wordpress.com/tag/subversion/'>subversion</a>, <a href='http://wpquicktips.wordpress.com/tag/svn/'>svn</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/232/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/232/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/232/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=232&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/04/14/remove-all-missing-files-from-a-svn-working-copy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
		<item>
		<title>Add your own CSS classes to tinyMCE</title>
		<link>http://wpquicktips.wordpress.com/2011/04/02/add-your-own-css-classes-to-tinymce/</link>
		<comments>http://wpquicktips.wordpress.com/2011/04/02/add-your-own-css-classes-to-tinymce/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 07:00:02 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Intermediate]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://wpquicktips.wordpress.com/?p=227</guid>
		<description><![CDATA[The Rich Text Editor (RTE) in WordPress use a JavaScript-library called tinyMCE. It is a widely used library and can be configured in a lot of ways. WordPress let developers filter the settings to tinyMCE so that it fits your needs. These few lines of code changes the buttons in the editor, and also adds [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=227&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Rich Text Editor (RTE) in WordPress use a JavaScript-library called tinyMCE. It is a widely used library and can be configured in a lot of ways.</p>
<p>WordPress let developers filter the settings to tinyMCE so that it fits your needs.</p>
<p><pre class="brush: plain;">function mytheme_tiny_mce_before_init($arr){
 $arr['theme_advanced_blockformats'] = 'h2,p,blockquote';
 $arr['theme_advanced_styles'] = 'Leading=leading';

 return $arr;
}
add_filter( 'tiny_mce_before_init', 'mytheme_tiny_mce_before_init' );

function mytheme_mce_buttons($arr){
 return array('bold', 'italic', '|', 'bullist', 'numlist', '|', 'formatselect', 'styleselect', '|', 'link', 'unlink' );
}
add_filter( 'mce_buttons', 'mytheme_mce_buttons' );</pre></p>
<p>These few lines of code changes the buttons in the editor, and also adds a format select and a style select.</p>
<p>From the format select you now can select &#8220;Heading 2&#8243;, &#8220;Blockquote&#8221; and &#8220;Paragraph&#8221;. In the style select you can select &#8220;Leading&#8221; and your element will get the CSS class <em>leading</em>.</p>
<br />Filed under: <a href='http://wpquicktips.wordpress.com/category/intermediate/'>Intermediate</a> Tagged: <a href='http://wpquicktips.wordpress.com/tag/css/'>CSS</a>, <a href='http://wpquicktips.wordpress.com/tag/editor/'>editor</a>, <a href='http://wpquicktips.wordpress.com/tag/javascript/'>javascript</a>, <a href='http://wpquicktips.wordpress.com/tag/tinymce/'>tinymce</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/wpquicktips.wordpress.com/227/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/wpquicktips.wordpress.com/227/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/wpquicktips.wordpress.com/227/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=wpquicktips.wordpress.com&amp;blog=11845639&amp;post=227&amp;subd=wpquicktips&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://wpquicktips.wordpress.com/2011/04/02/add-your-own-css-classes-to-tinymce/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bc1202fb520362b58f099dd345913ab9?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">boiardt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
