开发者

Get posts from my own blog [closed]

Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

Is there any API, through which I can get posts from my own blog on wordpress.com and put them on my other site?

  1. I have a blog on wordpress.com
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜