N00b problem with gallery menu sorting in php

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
simplypixie
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire
Contact:

Re: N00b problem with gallery menu sorting in php

Post by simplypixie » Wed Nov 21, 2012 11:38 pm

Change this line to

Code: Select all

$query = 'SELECT * FROM wp_ngg_gallery WHERE gid IN ('.$gals_ids.') ORDER BY '.$sort.'';

User avatar
simplypixie
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire
Contact:

Re: N00b problem with gallery menu sorting in php

Post by simplypixie » Thu Nov 22, 2012 8:46 am

As the ngg gallery is a plugin, have you looked at changing the settings there, not trying to re-write the code?

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests