Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Pagination help

I followed this tutorial from Treehouse to create multiple loops for my home page. They didn't cover pagination options. I can not get pagination to work, help!

I'm using the code here starting with

<?php query_posts('showposts=1&post_type=post'); ?>

Edited to format code.

1 Answer

Please provide a more complete description of what you are trying to do and post the complete code. I am not clear what you are attempting to do and the source of your data.

Pagination (and many other topics) are addressed in this series of courses:

http://teamtreehouse.com/library/build-a-simple-php-application

http://teamtreehouse.com/library/enhancing-a-simple-php-application