Get posts from my own blog [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionIs there any API, through which I can get posts from my own blog on wordpress.com and put them on my other site?
- I have a blog on wordpress.com
- I have a single site on another hosting provider
I need to parse开发者_StackOverflow中文版 posts from my blog on wordpress.com and display latest of them into my other site.
you could use the RSS feed thats associated with the wordpress blog to get yours posts, then use an RSS/XML reader on your site to display the posts.
RSS feed link example:
http://yourblog.wordpress.com/feed/
One option is to use RSS feed. You can customize RSS feed to extent you want. And other way is to make a connection to your wordpress blog database and then too write code to get posts. If both sites are on same server then it will be easy , other wise you will have to make a connection to remote database.
精彩评论