The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Plugin: WordPress Download Monitor] Showing downloads by category with most recent at the top (1 post)

  1. pinkbeats
    Posted 7 years ago #

    When showing a list of downloads by category, i.e. using the code


    the default is to show the oldest download at the top not the most recent. At Mike's suggestion, adding DESC to the line

    $query = sprintf("SELECT * FROM %s WHEREcategory_idIN (%s) ORDER BYtitleDESC;",

    in the wp-download_monitor.php file, did amend it so that the most recent download was at the top.

    However, after upgrading to the most recent version (2.2.3) and adding DESC to the same line in wp-download_monitor.php (now located on line #1990), it no longer seems to work. Has anyone with a knowledge of php got an idea why? Thanks in advance.

    (unsure why using backticks isn't showing the code above as code in the forum)

Topic Closed

This topic has been closed to new replies.

About this Topic