fix pagination and post excerpt