esmyhs
asked on
Show Thumbnail Image (with posts) from Wordpress on my homepage
I am trying to show some recent Wordpress posts on my homepage (a non Wordpress page). I figured out how to show the posts, but I can't figure out how to show a thumbnail with the post if one exists.
I would like to show the thumbnail at the left of the text (with the text centered vertically), and minimize the thumbnail to a very small size...
Any help would be appreciated.
Thanks.
I would like to show the thumbnail at the left of the text (with the text centered vertically), and minimize the thumbnail to a very small size...
Any help would be appreciated.
Thanks.
<?php
// Include WordPress
define('WP_USE_THEMES', false);
require('./News/wp-load.php');
query_posts('showposts=4');
?>
<?php while (have_posts()): the_post(); ?>
<FONT color=#728923 face="Verdana" size='2'>
<a style="color: #728923" href= "<?php the_permalink() ?>"target="_blank"><?php the_title() ?> </a>
</font>
<FONT color=#69462A face="Verdana" size='2'>
<?php the_excerpt(); ?>
</font>
<FONT color=#69462A face="Verdana" size='1'>
<p></p>Posted: <?php the_time('F j, Y'); ?> -
<a style="color: #69462A" href= "<?php the_permalink() ?>"target="_blank"><?php comments_number('0 Comments', '1 Comment', '% Comments' );?> </a>
<br>
</font>
<hr>
<?php endwhile; ?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Apparently, I'm not setting the thumbnails correctly in Wordpress.
Thanks for the help.
Thanks for the help.
ASKER
I think the issue may be that the thumbnails aren't showing on my Wordpress blog either. I'm using Thesis 2.0 - and I just started playing with it.
I chose a thumbnail to upload for the post, but it doesn't seem to display on the post either.
Any advice?
Thanks.