Örnek bir XML oluşturma (
Kendi yöntemim)
<?php /* Template Name: XML */
header('Content-Type: text/xml');?>
<videolist>
<title>Diger Videolar</title>
<?php $recent = new WP_Query("cat=1&showposts=10"); while($recent->have_posts()) : $recent->the_post();?>
<video id="<?php the_ID(); ?>">
<title><?php the_title(); ?></title>
<thumb><?php $values = get_post_custom_values("resim"); echo $values[0]; ?></thumb>
<url><?php the_permalink() ?></url>
</video>
<?php endwhile; ?>
</videolist>Bunu xml.php olarak kaydedip temanın içine atıyorsun.
Yeni bir sayfa oluşturuyorsun, içeriği boş olacak,
şablonu da XML'i seçeceksin.
Oluşturduğun yeni sayfa XML olarak gözükecektir.
şablon kısmında xml gözükmüyor yani