Solve for cycle for displaying posts