mandiwise / isotope-posts

[RETIRED] This plugin allows you to use Metafizzy's Isotope javascript plugin to display feeds of WordPress posts with a simple shortcode. Works with custom post types and custom taxonomies too.
GNU General Public License v2.0
55 stars 17 forks source link

Limit "see all" amount of posts. #1

Closed justinledelson closed 10 years ago

justinledelson commented 10 years ago

I would like to be able to limit the amount of posts it grabs for all categories. The page becomes way too long.

mandiwise commented 10 years ago

You can adjust the total number of posts displayed from all categories by editing line 121 of isotope-posts.php and changing the '-1' to whichever positive integer you prefer (e.g. '10' to show your ten most recent posts, etc.).

Limiting the number of posts pulled from each category would be trickier, and from what I can tell not super-straightforward in WP (will require a foreach loop). This post on SO may point you in the right direction re: adjusting the loop query in the main plugin file:

http://stackoverflow.com/questions/7891662/wordpress-list-of-all-categories-with-limited-number-of-posts-on-main-page