I want to show last 5 or 10 added products on my homepage. I searched in this forum and find some usefull codes.
The main problem is I have to give the From Date and To Date in every page to display on homepage.
But I don’t need to add this.. because I will post new products approx in every 10/20 days. I just want to list last 5 posted products on homepage.
I followed this help and successfully started to list my products on homepage:
But I need only the last 5 or 10 products on the basis of posted date.