Simple Hack I am sure. Not seeing it:
-
I finally got fed up trying to get a plugin, so coding my own.
I have gotten this far:
<?php $sep = ''; $separator = ' ~&~ '; $args = array( 'numberposts' => '5'); $recent_posts = wp_get_recent_posts( $args ); foreach( $recent_posts as $post ){ echo $sep . '<a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >'. $post["post_title"]. '</a>'; $sep = $separator; } ?>Which works great! I want to pull the associated image/featured image with the post listing. And I just can’t seem to do it. I am missing something I am sure.
I could greatly appreciate a more knowledgeable person to assist me with this. As it is one of my favorite features when creating themes.
The site that I am using it on: http://kelieskorner.com/themes/ you can see above the main content how I would like it to show. (main featured image, title beneath, next featured image, title beneath) etc.
Any help would be greatly appreciated in advance:
~Sin
The topic ‘Simple Hack I am sure. Not seeing it:’ is closed to new replies.