WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Autonav order desc (3 posts)

  1. now
    Member
    Posted 3 years ago #

    Hello,

    I have a problem in trying to re-order the thumbnails of several sub-pages on a website I'm working on… buvezmadison.com/site/images

    I tried to look for the information with no success. I can't manage to order my thumbnails on my page…

    In my template, i use
    <?php print autonav_wl_shortcode(array('display'=>'images')); ?>

    The older gallery is the a-premier titre and the newest is the e-titre cinq.

    I would like to show the newer gallery at "the top".
    I tried to add the shortcode [autonav display="images" columns="4" order="desc"]

    The settings of the plugin (EXCELLENT plugin by the way) are:
    Use sort_column : menu_order
    no excluded page

    Does someone know what i'm supposed to add to make the 'desc' order happen?

    Thank in advance for your help.

  2. wlindley
    Member
    Posted 3 years ago #

    Could you try this please:

    On line 461 of autonav-wl.php you should see:

    if (strtolower($attr['order']) =='rand') {
        shuffle($pages);
      }

    Make this read:

    if (strtolower($attr['order']) =='rand') {
        shuffle($pages);
      } elseif (strtolower($attr['order']) =='desc') {
        $pages = array_reverse($pages);
      }

    and see if that works with the shortcode you showed?

  3. now
    Member
    Posted 3 years ago #

    You rule!
    Works perfectly!
    Thanks a lot.
    I mark this thread as resolved.

    Thanks again for your help and for the plugin!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags