MicrostockGroup

Microstock Photography Forum - General => Symbiostock => Symbiostock - Technical Support => Topic started by: Redneck on July 07, 2013, 11:16

Title: Amount of Similar Images published
Post by: Redneck on July 07, 2013, 11:16
Any ideas where to set how many "Similar Images" are being shown on the image page. It's set to 12 which I find to be too many choices. I think giving the potential customer 6 possible alternatives would be plenty and might not confuse him/her too much.
Title: Re: Amount of Similar Images published
Post by: GeoPappas on July 17, 2013, 06:30
You can find the code here:

   wp-content/themes/symbiostock/inc/classes/widgets.php

You would need to change line 800 from:

   'posts_per_page' => 12, // return 5 posts

to:

   'posts_per_page' => 6, // return 5 posts

But please note that any updates that you make to the parent Symbiostock theme will overwrite this.

The best thing would be to put this in your child theme, but I don't know how to do that for a class that is below the main theme directory (wp-content/themes/symbiostock).  If you figure that one out, then please let me know.
Title: Re: Amount of Similar Images published
Post by: Redneck on July 17, 2013, 07:07
Thanks.
No, I don't know how to do it either. Yet.
Title: Re: Amount of Similar Images published
Post by: Ron on July 17, 2013, 17:26
I want to adjust this as well, but I dont want to code stuff. The widget needs to be rewritten so we can set the number ourselfs, from 6 to12 or something. I believe its going to be done in a month when Leo is back.