Recent Post in a HTML page, out of WP
-
I post the recent post in a HTML page out of WP, with this code:
<?php // Include the wp-load'er require('./artcls/wp-load.php'); // Load the recent top 3 posts query_posts( 'posts_per_page=3' ); ?> <div id="blogPosts"> <ul id="blogList"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li id="posts"> <a href="<?php the_permalink() ?>" target="_parent"><?php the_post_thumbnail(array(70,auto), array ('class' => 'alignleft')); ?></a><br/> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" target="_parent"> <?php the_title(); ?></a><br/> <span style="font-style:italic; font-size:11px;">Date: <?php the_time('F jS, Y') ?></span> </li> <?php endwhile; ?> <?php endif; ?> </ul> </div>
But know instead display the recent post with the format(little image and title-link), the entire post is displayed… header, footer, everything.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Recent Post in a HTML page, out of WP’ is closed to new replies.