-2

Hello can anyone help me, i need to generate custom xml file from wordpress recent posts how can i do this ? i need to use in tiles of windows 8. How can i generate xml file using wordpress please ? format i m looking to generate is

<tile>
  <visual>
    <binding template="TileWideText09">
       <text id="1">wordpress auto title here</text>
       <text id="2">wordpress auto description here</text>
    </binding>
  </visual>
</tile>

i dont know how to do that please help me in it.

Pekka
  • 442,112
  • 142
  • 972
  • 1,088

1 Answers1

0

You will need to query Wordpress for the posts you want to use, for example using wp_query(). (if you are used to using The Loop) or using get_posts() (The more "programmery" way).

With the resulting data, then build an XML output as outlined in How to generate XML file dynamically using PHP?

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088