implementing last post in category