I want to read Wordpress blog

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am developing an application in PHP similar to wordpress or blogger.
I want to import blog of particular user and embed those post to my
It is similar functionality as wordpress is giving for importing other

I have been through many documentation provided by wordpress.org ->
Codex, From my application user gives his/her wordpress blog URL , and
password but I am stuck in reading wordpress blog of a user.

I am new to this kind of development, I am sorry for my limited

Any response is highly encouraged and appreciated


Re: I want to read Wordpress blog

In article

Quoted text here. Click to load it

You might find some tools in Perl's CPAN library to read/write Wordpress
databases.  Or you could export the Wordpress blog and parse it's XML
file, adding the entries of interest.

DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

Re: I want to read Wordpress blog

On 9/29/2011 4:19 AM, youdol testAcount wrote:
Quoted text here. Click to load it

I'm not sure if this is exactly what you're looking for but I grab
recent posts from multiple blogs and display them on a "front intro
page". The "intro" page and all of the blogs are are on the same server,
you will need permission to post a file on each blog you want to pull
data from to use this approach.

Save a file with this code in each blog folder (where wp-config.php is
installed), I name it wp-recentposts.php

<?php require_once('wp-blog-header.php');
$posts = get_posts('numberposts=5&order=DESC&orderby=post_date');
foreach ($posts as $post) : start_wp(); ?>
<a href="<?php the_permalink() ?>" target='_blank'><?php the_title();
<?php endforeach;  ?>

Change the number of posts displayed, sorting, etc. to whatever you want.

Then read this file into your external page. If you are displaying
recent posts from multiple blogs on the same page you may need to use a
iframes, that was the only way I could get the code to work for multiple

<iframe src=".../wp-recentposts.php"></iframe>

I didn't want to use an iframe (I avoid them unless they're absolutely
necessary) but I couldn't find any other way to get this approach to
work for multiple blogs: the data from the first blog was repeated for
all of the other blogs when I didn't use iframes. I was able to display
recent posts from a single blog without the iframe.

I got the code from these pages:







Site Timeline