Use "page" instead of "post". Use more specific name within for loops.