WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Featured Images Widget (1 post)

  1. Jorge
    Member
    Posted 3 years ago #

    I went into the /wp-includes/ directory and copied the Recent Posts default widget and changed things around a pit so I can only get the featured image from the most recent posts. The following is the way I set it up in the functions.php file in my theme. I'm thinking this would be better off in a plugin, any thoughts?

    [Code moderated as per the Forum Rules. Please use the pastebin]

    fyi: i tested this out on the latest beta version of wp and a production network install, works fine, but i think it can be improved upon big time. Thanks for any thoughts in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic