Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mcranson

    (@mcranson)

    Plugin Contributor Shahriar Alam

    (@shahriar0822)

    Sorting option not available yet in [wpdm_tree]

    Hi Shahriar,

    Please count this as a second WPDM user who would REALLY REALLY like to sort their files too.

    [wpdm_tree file_order=”asc”] would be truly appreciated!

    Thanks!

    Ok, so no response from the Plugin folks… but I wanted to share a fix that anyone can use to accomplish alphabetic sorts in the WPDM, because like you I simply can’t stop working until these guys “get around to it”.

    The fix requires WPDM Extended Shortcodes Plugin

    First, find the file wpdm-extended-shortcodes.php
    This is located in /plugins/wpdm-extended-shortcodes/

    Then go to line 425, and then add the ‘order’ and ‘orderby’ lines so that it looks like so: (You could also use DESC instead of ASC obviously)

    $params = array(
                'post_type' => 'wpdmpro',
                'posts_per_page' => 9999,
                'order' => 'ASC',
                'orderby' => 'name'
            );

    I hope this helps others! This should really be baked-in functionality in their “Pro” plugin IMHO. 😉

    Plugin Author Shahjada

    (@codename065)

    WPDM Extended Shortcodes is free and when the feature will be available it will be available as free.

    Any progress on this change?

    I tried this shortcode but no luck.

    [wpdm_tree order_by=”title” order=”desc”]

    @stimpygato, what should my shortcode read, [wpdm_tree category=”slug” download_link=0 order_by=”name” order=”asc”]? If so, no dice for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tree View Sort’ is closed to new replies.