WordPress Recent News/Posts with or without Featured Image


/ Published in: PHP
Save to your folder(s)

This will show a number of recent posts along with their associated featured image (thumbnail) if they have one. The template code asks for the 2 most recent posts with the custom post type of "news." Change the quantity and post type as needed. This also uses a custom excerpt generator, which isn't necessary except that this particular code references it.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.