Status

Location
Arlington, VA
Subscribe to GeoRSS Subscribe to KML


Geo-enabling Wordpress

Published in Geolocation


Made a couple of changes to the RSS 2.0 and Atom feeds for the website to meet geotagging standards. Especially for the RSS feed, which only had a single location for the entire site, not for each entry.

In the wp-atom.php file I modified:
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:geo=”http://www.w3.org/2003/01/geo/wgs84_ps#“>

and
<geo:latitude><?php echo get_Lat(); ?></geo:latitude>
<geo:longitude><?php echo get_Lon(); ?></geo:longitude>

within the <entry></entry> section. For RSS you just need to move the icbm tags down into the <item> section.

Similar Posts

Comments are closed.