• I have activated the post images in my functions.php file and I would like to list the most recent post with the post thumbnail. When I searched, all I could find was a YP Recent Posts plugin that was frustrating to use and I hate relying on plugins when I don’t have to. I also found a tutorial but it was four years old and I couldn’t seem to make it work.

    I’m not GREAT with php, but I can usually power through. I’m just having trouble finding the guidance already published somewhere.

    Can someone give me some guidance on how I can list the most recent post with the title, thumb and excerpt?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bpetruzzo

    (@bpetruzzo)

    I’m sorry, let me clarify. I’m attempting to add this listing to the footer wherever it appears. When I looked through that codex listing it appears to simply supply a second loop. But on pages, not posts, it doesn’t do what I’m looking for.

    Basically, I’m looking to create a recent posts list in the footer that displays the post’s thumbnails.

    that get_posts function can be used to add an additional loop wherever you would like

    you could easily drop it into your footer and output the_title the_excerpt and the_post_thumbnail

    you’d need to add an additional post_thumbnail size in your functions.php I would think, and call to that from the loop set up in your footer

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘List recent posts with thumbnail and excerpt WITHOUT a plugin?’ is closed to new replies.