I can specify the number of items per page, but sometimes fewer items appear. I suspect that this code selects the desired number of items from the database without considering quantity available, then some part of the system removes any items that have quantity less than 1, and displays what’s left.
// Display 24 products per page. Goes in functions.php add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
- Am I correct?
- How do I make it REALLY display the desired number of items per page?
Yes, I understand that the last page might have fewer items. That should go without saying, but I figured it best to be specific. I’m talking about pages besides the last page.