I've got a customer request to sort images by rating, hits, and image create date. I'm using the highslide theme for all galleries. I'm pretty database and PHP savvy, but before I start this I wanted to get guidance from anyone else who has done or attempted this.
Comments
Please take a look at the `printSearchForm()` function in template-functions.php. You will note that it has a parameter `$query_fields` This parameter is used to supply the fields to be searched. Note, however, that it is subservient to the allowed search fields (set by the option) so that you can select only fields which are enabled by the admin option.
Just do you thing and pass the list of fields to the function. As always, we recommend looking at the functions guide to see what you can do with the existing functions.
$sorttype="rating"; I then pass in $sorttype to the paramater list for printRating()