functions tips

Get the first image from the post and display it in WordPress
Published on July 29th, 2011

By default, WordPress will not take your images with the excerpt on the homepage. This is the reason why many people use the thumbnail function or custom fields to display an image for the article on the front page. However, there is a simple way to display the first image of your article on the front page with a function.