• aciddragon

    (@aciddragon)


    I have a wordpress.com blog and I would like to be able to read my blog posts and list them on my website.

    I have some php code that works if I run my own wordpress installation, but can I use it against wordpress.com, if so how?
    I have tried but not got it correct.

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('./wordpress/wp-blog-header.php');
    query_posts('showposts=1');
    ?>
    <h3>Tayori Limited News.</h3>
    <?php while (have_posts()): the_post(); ?>
    <b><?php the_title(); ?></b>
    <?php the_excerpt(); ?>
    <?php endwhile; ?>
    </ br>
Viewing 1 replies (of 1 total)
  • Jeremy

    (@jeremiahhenson)

    It sounds like you could use an RSS feed aggregator to do the job more easily, if I understand what you’re after. Find an aggregator plugin you like and target it at your WordPress.com blog RSS. Then have the results show up on your website where you want.

Viewing 1 replies (of 1 total)
  • The topic ‘Read post remotely’ is closed to new replies.