Hello friends I am trying to get my wordpress posts to display in a non- wordpress application. Currently I am getting them by using the following method.
My wordPress page is something like this:
<div id="header"> <!-- header content goes here --> </div> <div id="main-body"> <div id="content"> <!-- Main Body goes here --> </div> <div id="sidebar"> <!-- My Sidebar Widgets go here --> </div> </div> <div id="footer" <!-- My footer goes here --> </div>
and I am using:
<?php file_get_contents('http://mysite.com/blog'); ?>
It's working ok but there are 2 issues.........
It is getting the entire page.
My page stops loading till it fetches the wordpress data.
Hence I thought AJAX was the solution. But I don't know AJAX. hence decided to seek help here.
What I am looking for is that I just want the output content of #Content Div and #sidebar Div separately so that I can place them in my other application in two different places.
I don't even need the CSS or JS as they are common for both my themes. I just want the output and separately placed at 2 different place.