fGallery sorting problem | WordPress plugin
I’ve had another problem with fGallery — which I generally like, although it does seem a bit buggy — which is that the sort doesn’t seem to work on two sites I’ve created. I’ve fixed this problem by going into the code itself (*gasp!*) and put the sort order in manually, to whit:
in fim_functions.php, line 501:
return $wpdb->get_results(”SELECT * FROM $table_cat WHERE status = ‘$status’ ORDER BY $order_by $order_type”);
change to
return $wpdb->get_results(”SELECT * FROM $table_cat WHERE status = ‘$status’ ORDER BY date $order_type”);


October 19th, 2007at 11:21 am
Thanks for this. but I figured out if you take the ‘order_by’ and change it to order_by it works just as well.
October 23rd, 2007at 11:16 am
Thanks Jason!