mr_man000 Posted August 29, 2009 Share Posted August 29, 2009 Hi guys, Same blog as my other post, I also need to link the images to the thumbs on the home page. Again the articles are there, but it just shows the default image. It's getting quite annoying. Please please please someone help. Here is the code: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="image"><a href="<?php the_permalink() ?>"><img src="<?php get_post_image();?>" width="109" height="81" alt="<?php the_title()?>" /></a></div> <div class="detail"> <h2 class="al"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <img class="ar" src="<?php echo blogdir;?>/images/typo/bt.gif" id="post<?php the_ID(); ?>" alt=">" /> <div class="clear"></div> <p id="aboutpost<?php the_ID(); ?>" class="aboutpost"> Written by <?php the_author_posts_link();?> in <?php the_category(', ') ?> </p> <p><?php modifyTextPost (40, "<a><strong>");?></p> </div> <div class="clear"></div> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php else : ?> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; ?> </div> <?php get_sidebar();?> <div class="clear"></div> </div> </div> <?php get_footer();?> Thanks again everyone! Quote Link to comment https://forums.phpfreaks.com/topic/172374-thumbs-on-wordpress-blog-linking-image-with-story/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.