BuddyBoss Home – Web › Support Forums › Themes › OneSocial theme › Product gallery pages only displaying 10 products per page
- This topic has 7 replies, 4 contibutors, and was last updated 8 years, 8 months ago by Frandes Cotarlici.
Question
February 27, 2016 at 2:08 pm #60497@conscious-craftiesHello,
I’m a WCVEndors Pro customer and bought this theme today (on recommendation from Ben) and have to say I’m super impressed with it – THANK YOU 🙂
I’ve got a couple of issues that I’ll raise in different tickets.
Firstly, when users are browsing through products, the product listing page (gallery pages) only display 10 products per page. How can I change this as customers don’t realise there are more products because of the empty space after the products on the first page.
Many thanks,
Karen
Answers
February 27, 2016 at 6:56 pm #60514@conscious-craftiesI’ve fixed the qty of products on gallery myself using code added to functions.php:
/* Display 32 products per page. Goes in functions.php */
add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 32;’ ), 20 );However the community page for vendors products still only shows 10 products:
https://www.consciouscrafties.com/community/s-j-crafting-creations/products/
How do I increase this please so there is no empty space making visitors think there are no more products to see?
Thank you,
Karen
February 29, 2016 at 8:08 am #60758@
AnonymousProduct per page is controlled from default WordPress option
/buddyboss-marketplace/templates/wc-vendors/store/store-products.php
Line 15$product_args = array( 'post_type' => 'product', 'author' => $vendor_id, 'posts_per_page' => apply_filters( 'loop_shop_per_page', get_option( 'posts_per_page' ) ), 'paged' => $product_paged );
Regards
Varun dubeyFebruary 29, 2016 at 9:39 am #60771@conscious-craftiesHi Varun,
Unfortunately I’m not a clever coder. Could you explain what I need to change in the code?
Many thanks,
KarenMarch 1, 2016 at 6:11 am #60898@crissfredHi Karen ,
You will have to go to Settings —> Reading and change the number of post per page
(Blog pages show at most — 12 or what number you want)Regards
EdmondMarch 1, 2016 at 8:19 am #60917@conscious-craftiesThank you so much Edmond!
That was much easier solution! Worked a treat 🙂
March 1, 2016 at 10:21 am #60936@
AnonymousExcellent! Thanks @crissfred for helping out 🙂
March 1, 2016 at 12:24 pm #60959@crissfredI’m glad i could help .
- The question ‘Product gallery pages only displaying 10 products per page’ is closed to new replies.