Quantcast
Channel: Topic Tag: xml | WordPress.org
Viewing all articles
Browse latest Browse all 3201

WP_query to export meta data

$
0
0

A number of posts in my wordpress contain meta data that I would like to make freely available in XML format.

I know in theory I should be able to use a combination of WP_query with arguments to filter down to the posts/meta data I want to make available, and then use php to output it in XML format.

The question is how should I go about doing it? Is creating a plugin my best option (never attempted that before)?

I could always code something up completely separate from WP to get the job done and query the database directly, but WP_query seems too convenient a function to pass up!


Viewing all articles
Browse latest Browse all 3201

Trending Articles