WordPress.org

Ready to get started?Download WordPress

Forums

WP-FaceThumb
[resolved] Ascending/descending order (10 posts)

  1. vintager
    Member
    Posted 1 year ago #

    Where can I reverse the ascending/descending order? I'd like the latest photo to be the first one displayed.. not last.

    Thanks!

    http://wordpress.org/extend/plugins/wp-facethumb/

  2. mnttech
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, for the moment, it's not implemented.
    But it's a good idea. I will work on that on the next release wich will be compatible with WordPress multisite. :)

  3. vintager
    Member
    Posted 1 year ago #

    Is there code in one of the files I can change to accomplish this until it is made official? If you point me in the right direction.. I'd appreciate it greatly!

  4. mnttech
    Member
    Plugin Author

    Posted 1 year ago #

    Didn't test it but I think if you edit WP_FaceThumb_Gallery.php and you change this line :
    $query = "SELECT * FROM $table WHERE display = 1 ORDER BY time LIMIT $offset, $thumbs_per_page";

    By this one :
    $query = "SELECT * FROM $table WHERE display = 1 ORDER BY time DESC LIMIT $offset, $thumbs_per_page";

    It should do the trick.
    I's been a while since i read this code so maybe it's not that...

  5. vintager
    Member
    Posted 1 year ago #

    PERFECT, thank you!!! Worked like a charm. :)

  6. vintager
    Member
    Posted 1 year ago #

    Oh wait.. my widget now disappeared.

  7. mnttech
    Member
    Plugin Author

    Posted 1 year ago #

    Cool :)

  8. vintager
    Member
    Posted 1 year ago #

    Caching issue with the widget, never mind.. I'm back to it works like a charm! :)

  9. mnttech
    Member
    Plugin Author

    Posted 1 year ago #

    That's weird.
    This change doesn't affect the widget...
    Go back and undo the change, I think your widget will not be here anyway.
    If this is what hapenned when you reverse the change you just made, go to the widget menu and check if the facethumb widget is always in your sidebar.

  10. mnttech
    Member
    Plugin Author

    Posted 1 year ago #

    Arf, seeing the messages with some delay here :)
    Anyway, I'm glad everything is fine.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.