Support #2477
closedESA Profiles navigation
0%
Description
It's taken some time, but there are now 10+ profiles on the ESA Student profile page (http://gcenglish.commons.gc.cuny.edu/student-profiles/). Unfortunately, one the first 10 are showing. This may have something to do with an interaction between the theme and the display-posts shortcode which is used to display the posts (the shortcode is not loaded as a plugin but is coded into the functions.php). I was also thinking it may have something to do with how I set up the profile page template itself (is it missing the nav codes?). Of course, maybe it's something else entirely. I would appreciate any help. Anything done to this page would also have to be done to the alumni page even though there are no alumni profiles, yet ( http://gcenglish.commons.gc.cuny.edu/alumni-profiles/)
Updated by Matt Gold almost 12 years ago
- Status changed from New to Assigned
- Assignee set to Boone Gorges
Assume this should be "only the first 10 are showing"
Updated by Boone Gorges almost 12 years ago
- Tracker changed from Bug to Support
- Status changed from Assigned to Reporter Feedback
- Target version set to Not tracked
The shortcode definition sets posts_per_page to 10 by default. You can override this when you use the shortcode. Since it's unlikely that you'll have more than a few dozen items on a page, there's no need to worry about development real pagination. Instead, go ahead and show them all on the page at the same time. You can show all posts on a single page by passing the parameter posts_per_page="-1"
to the shortcode, as I've done at http://gcenglish.commons.gc.cuny.edu/wp-admin/post.php?post=188&action=edit&message=1
Let me know if that's an OK resolution to the problem.
Updated by Paul Hebert almost 12 years ago
I thought it could be overridden with the shortcode, but I couldn't find it in the documentation. Oh well. You're solution is perfect. Thank you!
Updated by Boone Gorges almost 12 years ago
- Status changed from Reporter Feedback to Resolved
Excellent!