mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
af9b7abc5f
Example added to index.php. Install and update done. git-svn-id: http://svn.automattic.com/wordpress/trunk@294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
38 lines
1005 B
PHP
38 lines
1005 B
PHP
<?php $blog = 1; // enter your blog's ID
|
|
header('Content-type: text/xml');
|
|
include('blog.header.php');
|
|
?><?php echo "<?xml version=\"1.0\"?".">\n"; ?>
|
|
<travels>
|
|
<?php
|
|
$start = count($posts)-1;
|
|
for ($i = $start; $i >= 0; $i--) {
|
|
$post = $posts[$i];
|
|
start_b2();
|
|
if ((get_Lon() != null) && (get_Lon > -360) && (get_Lon() < 360 )) {
|
|
?>
|
|
<location arrival="<?php the_date_xml() ?>">
|
|
<name><?php the_title_rss() ?></name>
|
|
<latitude><?php print_Lat() ?></latitude>
|
|
<longitude><?php print_Lon() ?></longitude>
|
|
<?php
|
|
if ($rss_use_excerpt) {
|
|
?>
|
|
<note><?php the_content_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html) ?>
|
|
</note>
|
|
<?php
|
|
} else { // use content
|
|
?>
|
|
<note><?php the_excerpt_rss('', 0, '', $rss_excerpt_length, $rss_encoded_html) ?></note>
|
|
<?php
|
|
} // end else use content
|
|
?>
|
|
<url><?php permalink_single_rss() ?></url>
|
|
</location>
|
|
<?php
|
|
} // end if lon valid
|
|
?>
|
|
<?php
|
|
} // end loop
|
|
?>
|
|
</travels>
|