• Resolved ddrapeau

    (@ddrapeau)


    I have UPG-Pro and am setting up a page with [upg-list orderby=”title” layout=”pro”].

    The images show in descending alphabetical title order. Is there any way to show them in ascending order?
    – Is there a setting the I have missed?
    – Can I use one of the action hooks?

    Ideally I would like to simply use orderby=”title” order=”ASC”

    • This topic was modified 3 years, 9 months ago by ddrapeau.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author odude

    (@odude)

    There is no any attribute order=”…”

    You have to use shortcode as
    [upg-list layout="slide" popup="on" orderby="title"]

    To make it ascending edit the file
    \wp-upg\layout\catalog.php

    Search for
    'order' => 'DESC', and replace with 'order' => 'ASC',

    Thread Starter ddrapeau

    (@ddrapeau)

    Thank you. I edited the \wp-upg\layout\catalog.php as suggested.

    I added:
    if (strtolower($orderby == “title”)) {
    $order = “ASC”;
    } else {
    $order = “DESC”;
    }

    and replaced the two ‘order’ => ‘DESC’, lines with ‘order’ => $order,

    This way only the ‘title’ order is affected.

    I suggest you include this in a future release as “ASC” makes more sense for ORDERBY = “title”

    Plugin Author odude

    (@odude)

    As you suggested, I will definitely look into it. As it helps for everyone.

    You can also help us by fork at
    https://github.com/gupta977/flexi

    If you fork it, we can test it and implement in future release so that each update will not break your current changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I list posts in asseding title order in PRO layout?’ is closed to new replies.