WordPress Get The First Image From a Post

Put the following code inside the functions.php file or in your plugin file.

Use the following code inside the loop

 

Loading