Project

General

Profile

Support #2477

ESA Profiles navigation

Added by Paul Hebert about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress (misc)
Target version:
Start date:
2013-02-23
Due date:
% Done:

0%

Estimated time:

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/)

History

#1 Updated by Matt Gold about 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Boone Gorges

Assume this should be "only the first 10 are showing"

#2 Updated by Boone Gorges about 6 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.

#3 Updated by Paul Hebert about 6 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!

#4 Updated by Boone Gorges about 6 years ago

  • Status changed from Reporter Feedback to Resolved

Excellent!

Also available in: Atom PDF