Modo Web Design

Local Weather


Click for Forecast

Webmail Login





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”);