<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>kreeaytiv.com » News &amp; Blog</title>
	
	<link>http://kreeaytiv.com</link>
	<description>Portfolio site for web designer/developer Kristian Habenicht</description>
	<lastBuildDate>Tue, 21 Feb 2012 17:03:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Kreeaytiv" /><feedburner:info uri="kreeaytiv" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>New Title</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/cC225_u-sAo/new-title</link>
		<comments>http://kreeaytiv.com/news-and-blog/new-title#comments</comments>
		<pubDate>Tue, 21 Feb 2012 17:03:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=420</guid>
		<description><![CDATA[kjke hec iuehceiuh ciuefh viu ef]]></description>
			<content:encoded><![CDATA[<p>kjke hec iuehceiuh ciuefh viu ef</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/cC225_u-sAo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/new-title/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/new-title</feedburner:origLink></item>
		<item>
		<title>Fetching Featured Image Metadata in WordPress</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/bi0VNAjwdRY/fetching-featured-image-metadata-in-wordpress</link>
		<comments>http://kreeaytiv.com/news-and-blog/fetching-featured-image-metadata-in-wordpress#comments</comments>
		<pubDate>Sun, 17 Apr 2011 07:33:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=391</guid>
		<description><![CDATA[You know what&#8217;s awesome? Featured Images in WordPress. Introduced in WordPress 2.9 (and sometimes called &#8220;Post Thumbnails&#8221;), this feature lets you do more with images in your WordPress theme development. You can dictate with more flexibility where in your design the image is displayed, as well as leverage the built-in image resizing to make fool-proofing [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_403" class="wp-caption alignnone" style="width: 580px"><a href="http://www.flickr.com/photos/aidanmorgan/4357956027/"><img class="size-full wp-image-403" title="&quot;Rainbow&quot; by John-Morgan via Flickr" src="http://kreeaytiv.com/wp-content/uploads/2011/04/4357956027_4a5f520532_b.jpg" alt="&quot;Rainbow&quot; by John-Morgan via Flickr" width="580" height="326" /></a><p class="wp-caption-text">Oh look, a featured image in a post about featured images... &quot;Rainbow&quot; by John-Morgan via Flickr</p></div>
<p>You know what&#8217;s awesome? <a title="Post Thumbnails in WordPress Codex" href="http://codex.wordpress.org/Post_Thumbnails" target="_blank">Featured Images</a> in WordPress.</p>
<p>Introduced in WordPress 2.9 (and sometimes called &#8220;Post Thumbnails&#8221;), this feature lets you do more with images in your WordPress theme development. You can dictate with more flexibility where in your design the image is displayed, as well as leverage the built-in image resizing to make fool-proofing image use a breeze.</p>
<p>But what&#8217;s not immediately obvious is how to fetch metadata associated with any image uploaded as a Featured Image. How can you use information like the image title, caption, or alt text?</p>
<p>Bust the below PHP and you&#8217;re all set:</p>
<p><code>&lt;?php function the_post_thumbnail_meta() {<br />
global $post;<br />
$thumb_id = get_post_thumbnail_id($post-&gt;id);<br />
$args = array(<br />
'post_type' =&gt; 'attachment',<br />
'post_status' =&gt; null,<br />
'post_parent' =&gt; $post-&gt;ID,<br />
'include'  =&gt; $thumb_id<br />
);<br />
$thumbnail_image = get_posts($args);<br />
if ($thumbnail_image &amp;&amp; isset($thumbnail_image[0])) {<br />
echo $thumbnail_image[0]-&gt;post_title;<br />
}<br />
}<br />
?&gt;<br />
</code></p>
<p>It&#8217;s nothin&#8217; too fancy&#8230; basically we&#8217;re just grabbing the featured image&#8217;s ID, and using that, retrieving whatever info from the image we want.</p>
<p>As written above, this function nabs the Title of the image. However, if you replace&#8230;</p>
<p><code>echo $thumbnail_image[0]-&gt;post_title;</code></p>
<p>&#8230;with&#8230;</p>
<p><code>echo $thumbnail_image[0]-&gt;post_excerpt;</code></p>
<p>&#8230;you&#8217;ll instead fetch the image&#8217;s Caption.</p>
<p>You can use the following:</p>
<p><code>echo $thumbnail_image[0]-&gt;post_content;<br />
$alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);<br />
if(count($alt)) echo $alt;</code></p>
<p>&#8230;to get the image&#8217;s Description (first line only) or Alternate Text (last 2 lines only) instead.</p>
<p>Being able to access this information is quite useful, and should offer some more options with your site/theme development. For example, I&#8217;ve used the above move to optionally display the featured image&#8217;s description in a separate column from the one the image itself is displayed in (which is also a different column from the one where the actual post content is displayed).</p>
<p>Kick it nerds!</p>
<p>P.S. If you haven&#8217;t messed with Featured Images much yet, <a title="Wordpress Post Image Thumbnails at Mark On WordPress" href="http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/" target="_blank">peep this post</a>, it&#8217;s a great summary and introduction to what&#8217;s possible.</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/bi0VNAjwdRY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/fetching-featured-image-metadata-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/fetching-featured-image-metadata-in-wordpress</feedburner:origLink></item>
		<item>
		<title>G2 Android Wallpaper by Kreeaytiv</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/rWPhDdVLAiw/g2-android-wallpaper</link>
		<comments>http://kreeaytiv.com/news-and-blog/g2-android-wallpaper#comments</comments>
		<pubDate>Tue, 01 Feb 2011 19:11:52 +0000</pubDate>
		<dc:creator>Kreeaytiv</dc:creator>
				<category><![CDATA[News & Blog]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[G2]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=378</guid>
		<description><![CDATA[I just recently picked up a brand new G2 Android phone, and it is awesome. As often happens with new toys, I spent a good bit of time the other evening setting it up all nerd-like, and that included taking a couple minutes to whip up a suitable wallpaper. I didn&#8217;t think too long and [...]]]></description>
			<content:encoded><![CDATA[<p>I just recently picked up a brand new G2 Android phone, and it is awesome.</p>
<p>As often happens with new toys, I spent a good bit of time the other evening setting it up all nerd-like, and that included taking a couple minutes to whip up a suitable wallpaper.</p>
<p>I didn&#8217;t think too long and hard about it, I just wanted something stylish that also kept things on screen easy to look at.</p>
<p>So, I made <a title="G2 Android Wallpaper by Kreeaytiv" href="http://kreeaytiv.com/wp-content/uploads/2011/02/g2_android_wallpaper_by_kreeaytiv.zip">this wallpaper</a>. Feel free to download and use to your heart&#8217;s content. I&#8217;ve even included the photoshop .psd file, in case you feel like gettin&#8217; your art on up on it.</p>
<p>And by the way&#8230; for anyone interested in making their own wallpaper for a G2, be sure the dimensions are 960 pixels by 800 pixels. That&#8217;s the size you want to allow for the multiple home screen scrolling that happens.</p>
<p>Enjoy!</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/rWPhDdVLAiw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/g2-android-wallpaper/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/g2-android-wallpaper</feedburner:origLink></item>
		<item>
		<title>The W3C HTML5 Logo</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/fqPeBW0xrHY/the-w3c-html5-logo</link>
		<comments>http://kreeaytiv.com/news-and-blog/the-w3c-html5-logo#comments</comments>
		<pubDate>Tue, 25 Jan 2011 06:56:48 +0000</pubDate>
		<dc:creator>Kreeaytiv</dc:creator>
				<category><![CDATA[News & Blog]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=372</guid>
		<description><![CDATA[It evidently isn&#8217;t official (yet), but it sure is dope. For anyone who develops with HTML5, and for anyone who just wants to show support, roll over to http://www.w3.org/html/logo and dig all the HTML5 goodies available. There&#8217;s a badge builder, which allows you to build an embeddable image that shows what HTML5 technologies you&#8217;re pimping, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_374" class="wp-caption alignnone" style="width: 580px"><img class="size-full wp-image-374" title="W3C HTML5 Logo Unveiled" src="http://kreeaytiv.com/wp-content/uploads/2011/01/html51.png" alt="W3C HTML5 Logo Unveiled" width="580" height="326" /><p class="wp-caption-text">For more on the HTML5 logo, visit http://www.w3.org/html/logo</p></div>
<p>It evidently isn&#8217;t official (yet), but it sure is dope.</p>
<p>For anyone who develops with HTML5, and for anyone who just wants to show support, roll over to http://www.w3.org/html/logo and dig all the HTML5 goodies available.</p>
<p>There&#8217;s a badge builder, which allows you to build an embeddable image that shows what HTML5 technologies you&#8217;re pimping, as well as gear you can buy (like t-shirts), and even an address from whence you can obtain some free stickers.</p>
<p>Who doesn&#8217;t like free stickers?</p>
<p>I think it&#8217;s a sharp logo, a slick site, and a great way to raise further awareness of the developing technology. Bravo!</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/fqPeBW0xrHY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/the-w3c-html5-logo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/the-w3c-html5-logo</feedburner:origLink></item>
		<item>
		<title>Columns with CSS3? Yup!</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/C5nskd8IOGg/columns-with-css3-yup</link>
		<comments>http://kreeaytiv.com/news-and-blog/columns-with-css3-yup#comments</comments>
		<pubDate>Wed, 19 Jan 2011 05:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=358</guid>
		<description><![CDATA[I had no idea CSS3 did this! For any of you who mess with CSS, you know that building a mutli-column layout can be tricky, especially when you&#8217;re doing it for sites that run on a CMS of some sort. But a little CSS3 I just discovered makes things quite a bit easier&#8230; .content { [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_361" class="wp-caption alignnone" style="width: 580px"><a href="http://www.flickr.com/photos/pagedooley/1202823367/"><img class="size-full wp-image-361" title="&quot;Rupert Murdoch is on my driveway&quot; by kevindooley via Flickr" src="http://kreeaytiv.com/wp-content/uploads/2011/01/css3col.jpg" alt="&quot;Rupert Murdoch is on my driveway&quot; by kevindooley via Flickr" width="580" height="326" /></a><p class="wp-caption-text">&quot;Rupert Murdoch is on my driveway&quot; by kevindooley via Flickr</p></div>
<p>I had no idea CSS3 did this!</p>
<p>For any of you who mess with CSS, you know that building a mutli-column layout can be tricky, especially when you&#8217;re doing it for sites that run on a CMS of some sort. But a little CSS3 I just discovered makes things quite a bit easier&#8230;</p>
<p><code>.content {<br />
-moz-column-count: 3;<br />
-moz-column-gap: 10px;<br />
-moz-column-rule: none;<br />
-webkit-column-count: 3;<br />
-webkit-column-gap: 10px;<br />
-webkit-column-rule: none;<br />
column-count: 3;<br />
column-gap: 10px;<br />
column-rule: none;<br />
}</code></p>
<p>So, assuming you&#8217;ve got a div with the class &#8220;content&#8221;, and assuming you&#8217;ve got a whole mess of text inside of that div, the above code will automatically arrange that text in to 3 multiple columns, with a gap (i.e. margin) of 10px, with no rule (i.e. line, or, more CSS-ly, border).</p>
<p>That&#8217;s it!</p>
<p>It won&#8217;t solve all of your multiple column layout woes, but, it will definitely work for quite a few different situations. And it&#8217;s so easy!</p>
<p>A few quick notes&#8230; first, this won&#8217;t work quite yet in Internet Explorer (surprise). So for now, you&#8217;ll either have to use this in a <a title="&quot;Progressive Enhancement&quot; definition at Wikipedia" href="http://en.wikipedia.org/wiki/Progressive_enhancement" target="_blank">progressively enhanced</a> way, or, simply ignore those less fortunate IE users altogether. This is why the rules are duplicated with the &#8220;-moz&#8221; and &#8220;-webkit&#8221; prefixes&#8230; &#8220;-moz&#8221; makes Firefox kick this right, &#8220;-webkit&#8221; makes Chrome/Safari bust it correctly. One day, though, CSS3 will actually be the standard, and then the last 3 lines will work everywhere. Just write things like they are above and ensure you won&#8217;t have to go updating your code later on.</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/C5nskd8IOGg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/columns-with-css3-yup/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/columns-with-css3-yup</feedburner:origLink></item>
		<item>
		<title>Rock-Solid Re-Usable WordPress Loops</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/B9jT7xaKD-k/re-usable-wordpress-loop</link>
		<comments>http://kreeaytiv.com/news-and-blog/re-usable-wordpress-loop#comments</comments>
		<pubDate>Tue, 18 Jan 2011 07:09:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=341</guid>
		<description><![CDATA[A small, simple, yet profoundly useful bit of information for anyone that works with WordPress follows below&#8230; Seldom is there a WordPress theme where the default, out-of-the-box &#8220;loop&#8221; does all you need it to do. Almost inevitably, you need to get in there and create some custom loops. And this can get messy fast if [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_364" class="wp-caption alignnone" style="width: 580px"><a href="http://www.flickr.com/photos/krikit/2880756271/"><img class="size-full wp-image-364" title="&quot;Effort&quot; by Krikit ♥ via Flickr" src="http://kreeaytiv.com/wp-content/uploads/2011/01/boulder.jpg" alt="&quot;Effort&quot; by Krikit ♥ via Flickr" width="580" height="326" /></a><p class="wp-caption-text">&quot;Effort&quot; by Krikit ♥ via Flickr</p></div>
<p>A small, simple, yet profoundly useful bit of information for anyone that works with WordPress follows below&#8230;</p>
<p>Seldom is there a WordPress theme where the default, out-of-the-box &#8220;loop&#8221; does all you need it to do. Almost inevitably, you need to get in there and create some custom loops. And this can get messy fast if you&#8217;re not sure how to go about things.</p>
<p>But fortunately I&#8217;ve got a good chunk of code here that should make this portion of your WordPress themin&#8217; pain-free. First, let&#8217;s talk about the loop in WordPress&#8230;</p>
<p>The &#8220;Loop&#8221; is the portion of a WordPress template that grabs the specific posts being called for on a given page. It usually looks something like this:</p>
<p><code>&lt;?php while ( have_posts() ) : the_post(); ?&gt;<br />
&lt;?php the_title(); ?&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;?php endwhile; ?&gt;</code></p>
<p>If you pop open a template in your WordPress theme, it will almost certainly have more than what&#8217;s shown above, but, it will likely have <em>at least</em> this much.</p>
<p>The first line tells WordPress to look through the posts and grab what&#8217;s appropriate for the page&#8230; and for each post it finds, it says in the following lines to display the Title of each post followed by the Content of each post. Once that&#8217;s done, end the loop.</p>
<p>Cool, so that makes sense&#8230; and that works great for most of the pages in your WordPress theme.</p>
<p>But what if you want to display posts from a certain category in the sidebar? Or what if you want a page that displays different posts from different categories in a sweet grid-like design? Or what if you want multiple columns of many posts?</p>
<p>If you want to grab any of your WordPress posts, you&#8217;ll need a custom loop, and here&#8217;s how to kick it:</p>
<p><code>&lt;?php $myPosts = new WP_Query(); $myPosts-&gt;query('posts_per_page=1'); ?&gt;<br />
&lt;?php while ($myPosts-&gt;have_posts()) : $myPosts-&gt;the_post(); ?&gt;<br />
&lt;?php the_title(); ?&gt;<br />
&lt;?php the_content(); ?&gt;<br />
&lt;?php endwhile; ?&gt;</code></p>
<p>You&#8217;ll notice things look very similar, except for the first few lines. We&#8217;re using WordPress&#8217;s wp_query to specifically request some certain posts and display them.</p>
<p>The &#8220;wp_query&#8221; is quite similar to &#8220;query_posts&#8221;, but unlike query_posts, wp_query won&#8217;t screw around with any other loops on the same page. Just paste the above code in where you want some specific desired posts and you&#8217;re all set.</p>
<p>The only further editing you need will be where the above example says &#8220;posts_per_page=1&#8243;. This is where you put some parameters telling the query what posts to grab. For example, you could add &#8220;cat=4&#8243;, to grab posts that are only in the category with the ID of 4. Or, you could toss in &#8220;tag=awesome&#8221;, which would grab posts that are tagged with the word &#8220;awesome&#8221;.</p>
<p>You can, of course, use multiple parameters&#8230; just separate them with &#8220;&amp;&#8221;, as in &#8220;cat=4&amp;tag=awesome&#8221;.</p>
<p>For a complete list of all the possible parameters, see the <a title="Wordpress Codex page on query_posts" href="http://codex.wordpress.org/Function_Reference/query_posts" target="_blank">WordPress Codex</a> page on query_posts (and yeah, all the stuff that works on query_posts works with wp_query).</p>
<p>One last note&#8230; if you use this chunk multiple times in the same page, give each instance a unique variable in place of &#8220;$myPosts&#8221;. For example, if you use the above code 3 times in a page, for the first instance, replace every &#8220;$myPosts&#8221; with, say, &#8220;$myLoopOne&#8221;. For the second instance, use &#8220;$myLoopTwo&#8221;&#8230; and for the third, &#8220;$chiaPet&#8221;. This will keep these loops from stepping on each other&#8217;s toes.</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/B9jT7xaKD-k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/re-usable-wordpress-loop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/re-usable-wordpress-loop</feedburner:origLink></item>
		<item>
		<title>WordPress is Shy</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/Ok9ALoF2J0Q/wordpress-is-shy</link>
		<comments>http://kreeaytiv.com/news-and-blog/wordpress-is-shy#comments</comments>
		<pubDate>Thu, 02 Dec 2010 00:30:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>
		<category><![CDATA[slug]]></category>
		<category><![CDATA[strange]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=330</guid>
		<description><![CDATA[I recently stumbled upon a curious little tick in WordPress&#8230; I created a tag called &#8220;WordPress&#8221; working on an installation for a blog about, you guessed it, WordPress. In order to make a link to the tag archive for &#8220;WordPress&#8221;, I added the appropriate url, which should have ended in &#8220;/wordpress&#8221;. Well, I tested my [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_367" class="wp-caption alignnone" style="width: 580px"><a href="http://www.flickr.com/photos/31878512@N06/3953674244/"><img class="size-full wp-image-367" title="&quot;SAY HELLO TO PICKLE...&quot; by Neal. via Flickr" src="http://kreeaytiv.com/wp-content/uploads/2010/12/shy.jpg" alt="&quot;SAY HELLO TO PICKLE...&quot; by Neal. via Flickr" width="580" height="326" /></a><p class="wp-caption-text">&quot;SAY HELLO TO PICKLE...&quot; by Neal. via Flickr</p></div>
<p>I recently stumbled upon a curious little tick in WordPress&#8230;</p>
<p>I created a tag called &#8220;WordPress&#8221; working on an installation for a blog about, you guessed it, WordPress. In order to make a link to the tag archive for &#8220;WordPress&#8221;, I added the appropriate url, which should have ended in &#8220;/wordpress&#8221;.</p>
<p>Well, I tested my new little link, and lo and behold, a 404 error. No url that ends with &#8220;/wordpress&#8221;.</p>
<p>Maybe I mistakenly made the slug something different?</p>
<p>Surely I must have, because the slug was &#8220;wordpress-work&#8221;.</p>
<p>Strange indeed&#8230; so, I switched that punk back to &#8220;wordpress&#8221;.</p>
<p>Next page&#8230; &#8220;Item not updated&#8221;.</p>
<p>Huh?</p>
<p>Although I didn&#8217;t do any further research to find out for sure (I kept the slug as &#8220;wordpress-work&#8221;), it seems that WordPress doesn&#8217;t want you to create any tag or archive that would result in the url ending in &#8220;/wordpress&#8221;.</p>
<p>I guess WordPress is a shy little bugger.</p>
<p>Or am I wrong? Anyone notice otherwise?</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/Ok9ALoF2J0Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/wordpress-is-shy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/wordpress-is-shy</feedburner:origLink></item>
		<item>
		<title>Adding CSS3 Transitions to Links for a Little Pizazz</title>
		<link>http://feedproxy.google.com/~r/Kreeaytiv/~3/L4NwBXUIaqA/adding-css3-transitions-to-links-for-a-little-pizazz</link>
		<comments>http://kreeaytiv.com/news-and-blog/adding-css3-transitions-to-links-for-a-little-pizazz#comments</comments>
		<pubDate>Tue, 30 Nov 2010 08:01:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News & Blog]]></category>

		<guid isPermaLink="false">http://kreeaytiv.com/?p=283</guid>
		<description><![CDATA[Yeah you heard it. Pizazz. I am from (near) San Francisco after all&#8230; Anyway, although CSS3 still has a long way to go before it&#8217;s fully implemented reliably across all major browsers, there are some features that you can use right now. One of those features is CSS3 transitions. One quick note&#8230; this won&#8217;t work [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_369" class="wp-caption alignnone" style="width: 580px"><a href="http://www.flickr.com/photos/london/902817172/"><img class="size-full wp-image-369" title="&quot;celebration of light 2007 - vancouver, canada, fireworks&quot; by jonrawlinson via Flickr" src="http://kreeaytiv.com/wp-content/uploads/2010/11/firew.jpg" alt="&quot;celebration of light 2007 - vancouver, canada, fireworks&quot; by jonrawlinson via Flickr" width="580" height="326" /></a><p class="wp-caption-text">&quot;celebration of light 2007 - vancouver, canada, fireworks&quot; by jonrawlinson via Flickr</p></div>
<p>Yeah you heard it. Pizazz.</p>
<p>I am from (near) San Francisco after all&#8230;</p>
<p>Anyway, although CSS3 still has a long way to go before it&#8217;s fully implemented reliably across all major browsers, there are some features that you can use right now. One of those features is CSS3 transitions.</p>
<p>One quick note&#8230; this won&#8217;t work in Internet Explorer or Firefox. Firefox has promised <a title="Firefox 4 Beta 2 Brings Increased Support for CSS3 Transitions" href="http://www.css3.info/firefox-4-beta-2-brings-increased-support-for-css3-transitions/" target="_blank">support for CSS3</a> transitions in 4.0, and IE is, well&#8230; its IE. So if that&#8217;s a deal-breaker, go ahead and find something else to do.</p>
<p>But for the rest of you, this is a very simple and straightforward move you can bust to give your a project just a little kick&#8230; even if it is just for your Chrome/Safari/Opera users for the time being. On to the goodness&#8230;</p>
<p>First thing&#8217;s first, let&#8217;s start with a regular ol&#8217; link:</p>
<p><code>&lt;a href="http://kreeaytiv.com"&gt;Awesome website.&lt;/a&gt;</code></p>
<p>Crazy. Alright, now let&#8217;s look at some typical css you might toss on this sucker:</p>
<p><code>a{<br />
color:#cc33cc;<br />
text-decoration:none;<br />
}<br />
a:hover{<br />
color:#ff00ff;<br />
background-color:#e1e1e1;<br />
}</code></p>
<p>Unbelievable how awesome we&#8217;re getting over here.</p>
<p>So now you have a nice little link that&#8217;s a pinkish color of sorts, and when a user hovers over the link, the shade of pink changes, and a subtle off-white background is added. This change will occur immediately when the user hovers on or off of the link, much as we&#8217;re used to. The color changes just &#8220;blink&#8221; on and off.</p>
<p>This is fine, of course, but let&#8217;s add that aforementioned pizazz.</p>
<p>By using CSS3 transitions, we can animate that change of css-defined colors with just a handful of extra css lines:</p>
<p><code>a{<br />
color:#cc33cc;<br />
text-decoration:none;<br />
-webkit-transition: all 0.3s ease;<br />
-moz-transition: all 0.3s ease;<br />
-o-transition: all 0.3s ease;<br />
transition: all 0.3s ease;<br />
}<br />
a:hover{<br />
color:#ff00ff;<br />
background-color:#e1e1e1;<br />
}</code></p>
<p>The 4 new lines we added to the anchor tag all define the same transition. Let&#8217;s look at exactly what&#8217;s crackin&#8217;&#8230;</p>
<p>First, the &#8220;all&#8221; tells the browser to apply the transition to everything that it can (in this case, both the text color of the link itself and the background color as well). Transitions can be applied to lots of rules (the whole list is <a title="CSS Transitions Module Level 3" href="http://www.w3.org/TR/css3-transitions/#properties-from-css-" target="_blank">here</a>), and you can pick and choose them to your heart&#8217;s content. For our purposes, &#8220;all&#8221; does the trick.</p>
<p>The next bit (&#8220;0.3s&#8221;) defines the time over which the transition should occur, in seconds. Again, it&#8217;s a matter of taste. Pick any reasonable time you like.</p>
<p>Lastly, &#8220;ease&#8221; defines how to animate the transition. Other possibilities include linear, ease-in, ease-out, ease-in-out, and cubic-bezier. Try &#8216;em all to see how the different animations look. Good stuff.</p>
<p>With just those 4 lines of code, you should now have links that awesomely animate-ly transition between css styles.</p>
<p>But what about those <em>4</em> lines? Why 4 of them?</p>
<p>Those 4 separate lines cover our bases for browser support. Eventually, only the final line that is simply &#8220;transition&#8221; will be necessary. However, in the meantime, the previous 3 lines target webkit (i.e. Safari and Chrome), mozilla (i.e. Firefox), and Opera (&#8220;o&#8221; is for Opera&#8230; duh) individually using vendor prefixes.</p>
<p>By writing our CSS3 transitions like this, we cover our bases for not only all the major browsers now, but also for any &#8220;proper&#8221; support by any browser in the future.</p>
<p>Obviously, this little move is used everywhere here at Kreeaytiv.com. Because we got a thing for pizazz.</p>
<img src="http://feeds.feedburner.com/~r/Kreeaytiv/~4/L4NwBXUIaqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://kreeaytiv.com/news-and-blog/adding-css3-transitions-to-links-for-a-little-pizazz/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://kreeaytiv.com/news-and-blog/adding-css3-transitions-to-links-for-a-little-pizazz</feedburner:origLink></item>
	</channel>
</rss>

