If you visit this site, you will see that there is an image and summary for each post. What is the proper way to implement that?
Is this done using WordPress custom fields? Or whether this is coded in image.php file present in theme folder? How do I do that?
There is a better way – you can also use this function too –
if you insert this function to your functions.php of your theme you can insert
in your single.php and index.php
This function will catch the first image in ever post and will display it, if no one is available – it will use one Default image which you can change…
Or another way:
If you put this in your index.php or single.php it will use the image given in field “postimage” (customfield in posts/pages).