Full Subscription Options:
RSS for The Newsroom | RSS for Comments from The Newsroom
Alternatively, you may also want to subscribe to some of our other RSS feeds, such as:
Would you like to test drive one of our themes before deciding whether or not you like it...?
Would you like to have your own free blog that we will host for you and you can use for anything...?
If the answer to either of these questions is yes, CLICK HERE to start the sign-up process!
|
If you would like to give your Wordpress RSS feed full GeoRSS compatibility, it’s really quite simple - all you need to do is copy and paste the following piece of code into your functions.php file:
function geo_header() {
echo 'xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:georss="http://www.georss.org/georss"'; } add_action('rss2_ns', 'geo_header'); function geo_points() { However, please remember that in order to view the GEO-Tagged RSS feed, you will need to use the full URL, such as http://yourdomain.com/?feed=rss2 You may be asking how can you then add coordinates to posts…? Also relatively simple - just create custom fields labeled: map_lat …As referenced above within the code. If you need a really easy way to find the coordinates you need, we strongly recommend the use of the Mapeed.AdressChooser API If you’re looking for an example of what can then be done with the Geo-Tagged RSS Feed, please take a look at the following: The KL News Network Geo-Tagged Page, which does not use any plug-ins: This hack has been provided for those looking to incorporate Geo-Blogging functionality directly into their theme, or that need a step in the right direction as far as developing your first Geo-Tagged plug-in may be concerned. For those curious as to exactly what code is needed to generate a map like the one seen above, all you need to do is include the following code:
<script src="http://www.google.com/jsapi?key=MUST ADD YOUR API KEY HERE">
</script><script type="text/javascript">google.load("maps", "2");</script> <script type="text/javascript"> function loadMap() { function toggleMyKml() { <div id="map_canvas4"></div> Read More From The WP Hacks Category
One Response to “Adding GeoRSS Functionality”
|
WPMUP TEAM
Those interested in geo-blogging should really check-out WPMU gMaps!