<?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:georss="http://www.georss.org/georss" 
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>bioneural.net &#187; microformats</title>
	<atom:link href="http://www.bioneural.net/tag/microformats/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bioneural.net</link>
	<description>bioneural.net is for stuff worth sharing: commentary by Bruce McKenzie. Major topics covered are gadgets, informatics, Internet, Mac, mobile, musings, New Zealand, photography, Project Koru, quicklinks, rant, rave, travel and Windows</description>
	<pubDate>Thu, 28 Aug 2008 13:07:03 +0000</pubDate>
	
	<language>en</language>
	<image>
		<title>bioneural.net</title>
		<url>http://www.bioneural.net/images/kiwi-yellow-64px.png</url>
		<link>http://www.bioneural.net</link>
		<width>64</width>
		<height>64</height>
		<description>bioneural.net</description>
	</image>
		<item>
		<title>Customizing WordPress feed content</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F&amp;seed_title=Customizing+WordPress+feed+content</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F&amp;seed_title=Customizing+WordPress+feed+content#comments</comments>
		<pubDate>Sun, 13 Apr 2008 20:38:12 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[rss]]></category>

		<category><![CDATA[tips]]></category>

		<category><![CDATA[webdev]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=920</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License"><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="CC" /></a> From <a href="http://www.bioneural.net/about/terms/">http://www.bioneural.net</a> : </p>When I last looked at customizing feeds in WordPress, it was all to do with being able to offer a summary and full text feed simultaneously&#8212;making use of WordPress' flexible feed URL syntax and a .htaccess file. In this post I look at modifying the actual contents of the feed using a functions.php file (which may already exist as part of your current theme).


Just as WordPress provides a number of hooks for adding or removing actions in your theme header (see here), so to do the core files that generate your feeds. Editing the core files is however discouraged (it makes upgrading a pain), and although you can build your own replacement feed templates an easy alternative is adding a few lines to your theme's functions.php file.

As a perpetual PHP beginner I feel obliged to warn you that use of the following code is at your own risk.

If there are any PHP/ WordPress experts reading this who can improve on my code please make yourself known ;-)

Removing WP version info

Somewhere, a while back, I read a tip about not including the WordPress version you are running in your template header&#8212;potentially allowing hackers to identify you as a target if you haven't kept up-to-date. It's easy to remove if present. For example, in the K2 theme just delete the following line from header.php:


 From bioneural.net:Mac-based web developers...]]&gt;
		...
		http://creativecommons.org/licenses/by-nc-sa/2.5/
		


Rendered in a feed reader humans will see this:



The Creative Commons icon is hopefully recognisable and links to the correct license; the link to bioneural.net ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F13%2Fcustomizing-wordpress-feed-content%2F&amp;seed_title=Customizing+WordPress+feed+content/feed/</wfw:commentRss>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>RDF v microformats v meta headers</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F05%2Frdf-v-microformats-v-meta-headers%2F&amp;seed_title=RDF+v+microformats+v+meta+headers</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F05%2Frdf-v-microformats-v-meta-headers%2F&amp;seed_title=RDF+v+microformats+v+meta+headers#comments</comments>
		<pubDate>Sat, 05 Apr 2008 18:24:49 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
		
		<category><![CDATA[Quicklinks]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[metadata]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[webdev]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/?p=895</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License"><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="CC" /></a> From <a href="http://www.bioneural.net/about/terms/">http://www.bioneural.net</a> : </p>I've had a hard time "getting" RDF (e.g. how it differs from XML), but this article helps give it context. The semantic web is being built simultaneously from the bottom up and top down. Typifying the bottom-up approach, RDF content is machine-readable at the outset; powerful but complex (with several advantages over microformats), RDF is all about inter-operability. Top-down approaches introduce "metadata sprinkling" to existing content, simple but limiting by comparison e.g. microformats (using CSS class attributes as in hCard), or meta elements (meta tags such as those for geo-discovery). Both approaches are valid, but RDF is hard whereas microformats help "the rest of us" contribute to the semantic web. There may be a collision ahead, however, between microformats and RDFa (sprinklings of RDF embedded in existing XHTML).

 ]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F04%2F05%2Frdf-v-microformats-v-meta-headers%2F&amp;seed_title=RDF+v+microformats+v+meta+headers/feed/</wfw:commentRss>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>A web standard icon for geotagging</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F02%2F21%2Fa-web-standard-icon-for-geotagging%2F&amp;seed_title=A+web+standard+icon+for+geotagging</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F02%2F21%2Fa-web-standard-icon-for-geotagging%2F&amp;seed_title=A+web+standard+icon+for+geotagging#comments</comments>
		<pubDate>Thu, 21 Feb 2008 13:35:39 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[flickr]]></category>

		<category><![CDATA[geotagging]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[gps]]></category>

		<category><![CDATA[icons]]></category>

		<category><![CDATA[metadata]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[omnigraffle]]></category>

		<category><![CDATA[opml]]></category>

		<category><![CDATA[rss]]></category>

		<category><![CDATA[Travel]]></category>

		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/2008/02/21/a-web-standard-icon-for-geotagging/</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License"><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="CC" /></a> From <a href="http://www.bioneural.net/about/terms/">http://www.bioneural.net</a> : </p>Geotagging (or geocoding if you prefer) is the act of associating your content (blog posts, photos, feeds, etc.) with a geographic location (e.g. via latitude and longitude co-ordinates). Thus tagged authors can "mash" their content together with the likes of Google Maps, or the Flickr Map if photography is your thing. However, co-ordinates are typically encoded within metadata (or microformat) tags making them visible to machines but hidden from people. We have de facto web standard icons to help identify feeds, OPML, and sharing&#8212;so why not for geotagged content?


Update 29.02.08: Thanks to everyone who gave feedback or otherwise contributed to the process of taking this proposal forward. Comments are now closed and further feedback should now be directed to geotagicons.com, where you can now download the new community-designed geotag icon.

The goods

I propose a web standard Geotag Icon, to be used freely by any geotagger or geotagging service. Here is what it looks like at 128px:



At 32px:



And at 16px:



Important: These images are not final; this is a proposal. Please do not hotlink to these images. You can download them individually by right-clicking the one you want, or as part of the draft Geotag Icon Development Kit here.

Family line-up

The family resemblance is obvious:



Why not complete the set? Grab the Feed icon, the OPML icon, and the Open Share icon.

Update 27.03.08: The Open Share Icon Project offers a free, open, community-driven alternative to the trademarked and brand-linked ShareThis.com icon.

Icon specification


	It should be similar in style to existing de facto web standard icons (hereafter ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2008%2F02%2F21%2Fa-web-standard-icon-for-geotagging%2F&amp;seed_title=A+web+standard+icon+for+geotagging/feed/</wfw:commentRss>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>Implementing the hCard microformat</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2007%2F08%2F17%2Fimplementing-the-hcard-microformat%2F&amp;seed_title=Implementing+the+hCard+microformat</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2007%2F08%2F17%2Fimplementing-the-hcard-microformat%2F&amp;seed_title=Implementing+the+hCard+microformat#comments</comments>
		<pubDate>Fri, 17 Aug 2007 11:12:23 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
		
		<category><![CDATA[Internet]]></category>

		<category><![CDATA[blog]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[Mac]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[webdev]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/2007/08/17/implementing-the-hcard-microformat/</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License"><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="CC" /></a> From <a href="http://www.bioneural.net/about/terms/">http://www.bioneural.net</a> : </p>hCard is a semantic web-friendly derivative of vCard (as used to import/ export from the Mac OS X Address Book). This post is a short "how to" describing a method for adding contact information to your blog posts in a cross-platform format that your readers can store without effort.


The RSS client NetNewsWire now detects microformats&#8212;hCard/ vCard for contacts and hCalender for calendar events. I noticed that the odd site has started displaying the tell-tale icon indicating associated contact information:



Adding hCard to your posts

I wanted my hCard to be available from any page in my site, so I added the following code to my WordPress footer.php template:



	
	 Bruce McKenzie is a General Practitioner based in Wellington, New Zealand.
	 He blogs at bioneural.net (feed) and can be contacted (+12:00 UTC) as b.mckenzie on Skype.



Notice that the paragraph containing my hCard data is styled out so that it doesn't display at the footer of my page:



If CSS is disabled, however, the hCard information is revealed to the world and the use of "natural language" makes things human-readable:



Tip: An easy way to encode a photo is to e-mail yourself a JPEG photo then select the message in Mail and choose View &#62; Message &#62; Raw source. Now copy the base64-encoded text block into the image scr, adding a "data:image/jpeg;base64," prefix.

Accessing hCard via NetNewsWire

At this point when readers use NetNewsWire to read one of your posts your hCard should be automatically detected, although it appears that not all of the specification is supported. They can ...]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2007%2F08%2F17%2Fimplementing-the-hcard-microformat%2F&amp;seed_title=Implementing+the+hCard+microformat/feed/</wfw:commentRss>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
		<item>
		<title>Introduction to microformats</title>
		<link>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2006%2F07%2F18%2Fintroduction-to-microformats%2F&amp;seed_title=Introduction+to+microformats</link>
		<comments>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2006%2F07%2F18%2Fintroduction-to-microformats%2F&amp;seed_title=Introduction+to+microformats#comments</comments>
		<pubDate>Tue, 18 Jul 2006 20:37:56 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
		
		<category><![CDATA[Quicklinks]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[microformats]]></category>

		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.bioneural.net/2006/07/18/introduction-to-microformats/</guid>
		<description><![CDATA[<p><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/" rel="license" title="This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License"><img src="http://www.bioneural.net/wp-content/themes/k2bn/styles/bioneural/cc.png" alt="CC" /></a> From <a href="http://www.bioneural.net/about/terms/">http://www.bioneural.net</a> : </p>Nick Nettleton summarizes: "Microformats build on the semantic capabilities of the web, using existing standards". Many bloggers use rel-tag already; read Nick's helpful intro then head to microformats.org to learn more about this "next big thing". ]]></description>
		<wfw:commentRss>http://www.bioneural.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.bioneural.net%2F2006%2F07%2F18%2Fintroduction-to-microformats%2F&amp;seed_title=Introduction+to+microformats/feed/</wfw:commentRss>
		<creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/2.5/</creativeCommons:license>
	</item>
	</channel>
</rss>
