Today i am going to show you the code to display posts by Daily, Weekly, Monthly, Yearly & some other…