WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

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

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

Your Answer


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.