I have self-hosted word-press Blog, and I am making a static home-page for my website based on jQuery. So, I wanted to display some content from my blog , in my home page ( in widgets ) , as a news section
For example , I may fetch
- latest 5 posts titles & contents
- OR a specific page content ( via passing page id )
- OR a specific post ( via passing post id )
So does Wordpress include any PHP file , that shows the posts contents as plain text, or HTML ??
I thought about fetching the Blog's RSS , then show it on the page,
but the RSS doesn't provide the full content of the post.
Thanks in advance
If it's hosted on the same server, you could integrate wordpress into your app by including
wp-blog-header.php
, and then call get_posts(), usingsetup_postdata()
.For example:
Take a look at Yahoo! Pipes.