seperating query results link
-
i have this wp-query to return the 8 most recent post images, i tried to add titles without success and now ive messed something up so that its all one big link, and not individual post links. you can see what i mean here https://www.magaribeipoa.com/wordpress
<div class=”imagegallery”>
<?php query_posts(‘showposts=8&orderby=date&order=DESC’); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?><?php if (get_first_image($post->ID, ‘pic_90_70_’, true) ) { ?>
“><img alt=”<?php the_title_attribute(); ?>” src=”https://magaribeipoa.com/wordpress/wp-content/themes/Sitemile_ClassifiedTheme/<?php echo get_first_image($post->ID, “pic_90_70_”, $single = true); ?>” border=”0″ style=”padding-right: 10px; padding-left: 10px;/>
<?php } ?><?php endwhile; endif; ?>
</div>
- The topic ‘seperating query results link’ is closed to new replies.