Hello. I need to limit the number of product to display in one category list.
I paste the code <?php echo wpsc_display_products_page( array( ‘category_url_name’=>’last-product’ ) ); ?> in the right template page and it work but i’d like to show only 4 or 5 products.
How i can do it?
Finally i activated the pagination and paste this code on the template page <?php echo wpsc_display_products_page( array( ‘category_url_name’=>’last-product’, ‘limit_of_items’=>’4’ ) ); ?>
Than hide the pagination menu through css.
i think it’s not the best way but it work.
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘I can't limit the items number in category template tags’ is closed to new replies.