I've word-press blog installed on my Godaddy's Domain.
www.mysite.com/blog
I want to get the latest posts of my blog using C#/ASP.Net code, how can I do this?
I've word-press blog installed on my Godaddy's Domain.
www.mysite.com/blog
I want to get the latest posts of my blog using C#/ASP.Net code, how can I do this?
WordPress provides an XML-RPC API that includes getPosts and similar function. You can find a couple of pre-built clients for it on NuGet; I haven't tried either to recommend them but from the GitHub readme the first one looks more complete:
Also if you've got the Jetpack plugin installed on your site then that adds a JSON API. I can't recommend one sorry but again there'll be OAuth2 and REST API clients on NuGet.
Ok guys; basically i required my latest blogs post , so what i used
p3k.org/ takes the path of my blog feed and returns me latest post.
I simply embed in my project using the generated script . So i don't need to get info ASP.net code .
Cheers!
As per my view and research, you can access wordpress DB in asp.net c# by using MySqlConnection.
Please visit following link for more information about MySQL Connection.
http://www.codeproject.com/Tips/355977/Csharp-ASP-NET-MySQL-Connection-Tutorial-with-MySQ