How To Create Featured Products or Posts In WordPress

I want to add a featured product at the top of index wordpress page. Basically it will have an image and title of posts. There are a lot of plugin available for featured product but those are not fulfill my requirement.
So today I am trying to create custom featured product based on category name and number of product parameters.
I have done too much goggling but did not found satisfying answer, so below I am describing how to create featured product in simple steps.


Simple step to create featured products in wordpress.

Step 1: First We will create a category in wordpress name is ‘Featured Product’.
Step 2: Create CSS class for featured div.
Step 3: Now we will paste below code in index.php file Or where you want to display featured product:

Step 4: Result:
featured product