the_content_rss Issues
-
<!--recent posts start --> <div class="footer-recent-posts"> <h4>Recent Posts</h4> <ul> <?php $lastposts = get_posts('numberposts=3'); foreach($lastposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>: <?php the_content_rss('', TRUE, '', 10); ?> </li> <?php endforeach; ?> </ul> </div> <!--recent posts end -->
Hey guys, the above is some code which I am placing in my ./footer.php file to call the 3 latest blogs posted. However I am having some issues getting it to work properly; when viewing the footer on for instance a Search Result page, an Index page, or an Archive page all three latest posts load fine.
However, when viewing an actual blog post, only the description for the most recent blog post recorded is included, with the other two featuring a blank blog description.
Any ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘the_content_rss Issues’ is closed to new replies.