You must be logged in to post


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Changing the number of Product thumbnail images shown on homepage

UserPost

7:58 pm
February 27, 2009


Market Admin

Admin

posts 4756

1

This is a pretty easy modification, and only requires one small change.

First, open up the Main Index Template for editing (index.php) through the WordPress administration "Theme Editor".

Search for the following line:

  <?php $my_query = new WP_Query('category_name=products&showposts=12'); while ($my_query->have_posts()) : $my_query->the_post(); // check for product large image

Locate in the line where it says "showposts=12".  Change the number "12" to whatever number you like.

NOTE:  It's usually best to keep the number a multiple of 3, since the design layout is optimized to fit 3 thumbnail images across.  (ie. 3, 6, 9, 12, 15, 18, etc.) 

Save the file.

That's it.

9:11 pm
December 1, 2009


WendyMayo

Member

posts 10

2

Is this still the way to do this?  I looked in the appropriate php file and did not find the code stated above.

3:35 pm
December 2, 2009


Market Admin

Admin

posts 4756

3

No… Market has advanced since then.

You can now change the number of thumbnails shown through the "Market Theme" options settings area of your WordPress administration dashboard.



 

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.