added tagged posts support and pagination