the_content_limit() linking to first article only
-
Site: thewyonews.com
I am using the_content_limit for the feature category articles. The title link is correct, but the read more link is showing the link to the first article only.
<?php $recent = new WP_Query(“cat=”.$feature_cat_3.”&showposts=”.$feature_cat_3_num); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, “hpbottom”, true) ): ?>
” rel=”bookmark”><img style=”float:left;margin:0px 10px 0px 0px;” src=”<?php echo get_post_meta($post->ID, “hpbottom”, true); ?>” alt=”<?php the_title(); ?>” />
<?php else: ?>
<?php endif; ?>
<?php
echo ‘<b><a href=”‘;
the_permalink();
echo ‘” rel=”bookmark”>’;
the_title();
echo ‘</b>’;
the_content_limit(350,”[Read the full article]”);
?>
<div style=”border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;”></div>
<?php endwhile; ?>
- The topic ‘the_content_limit() linking to first article only’ is closed to new replies.