Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to get the timestamp of the latest post in C#/.net? I am writing a control in ASP.NET for a intranet, which will alert users when a new post is posted in a wordpress blog.

share|improve this question
add comment

3 Answers

WordPress is not written in these languages and have no assumed way to interact with them.

You can access such info by connecting to WP database or by accessing WP-generated RSS feed, whatever is easier for tools you need to use.

share|improve this answer
    
I was thinking if there was any API calls that could get only the last updated date... –  Bit Hunter Nov 17 '11 at 14:30
add comment

The API you need is in asp to grab and parse an RSS feed. Use an RSS feed parser in asp and grab the top most post and then parse the date from it. There are all kinds of code samples out there for RSS parsers in asp.

share|improve this answer
add comment

You could use the wp.getPosts XML RPC API : http://codex.wordpress.org/XML-RPC_WordPress_API/Posts#wp.getPosts

There's an implementation of it on the JoeBlogs wrapper API
http://github.com/alexjamesbrown/joeblogs

By default, the come back in date order, newest first.

You can also specify 'Fields' to limit the fields coming back.
(This is not yet supported in JoeBlogs)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.