Access posts based on modified date, for use with clients who cache data and need to request specific updates. Unpublished/deleted posts are included in responses because a client may have already pulled them and needs to unpublish/remove them.
If you include a '[posttype].repo.inc' file in the plugin folder it will be called when a request for that posttype arrives. This allows your endpoint to serve 'standard' wordpress database data as well as maybe something custom coming from files or elsewhere.
<?xml version="1.0" encoding="UTF-8" ?> <posts> <post id="4" url="http://www.mywordpress.com/myarticle" modified="2012-08-09 13:41:45" published="2012-08-13 12:00:47"> <title>My Article</title> <author>Craig Rowe</author> <image src="http://www.mywordpress.com/myfeatureimage.jpg" /> <abstract><![CDATA[My abstract]]></abstract> <body><![CDATA[<p>my body</p>]]></body> <categories value="articles featured"></categories> <fields> <myfield>myvalue</myfield> <myfield2>myvalue2</myfield2> </fields> </post> <post id="1" status="deleted"></post> <post id="2" status="unpublished"></post> <post id="3" status="unpublished"></post> </posts>fig. 1.0
All portfolio content is copyright and cannot be reproduced without express persmission. These pages include both previously implemented and partially designed websites as well as university and exemplar projects.