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



2 Responses to “fGallery sorting problem | WordPress plugin”

  1. jason Says:

    Thanks for this. but I figured out if you take the ‘order_by’ and change it to order_by it works just as well.

  2. admin Says:

    Thanks Jason!

Leave a Comment

Please visit WP-Admin > Options > SPA and enter the key. How to find your key