Read post remotely
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Read post remotely’ is closed to new replies.