WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pinkbeats
    Member
    Posted 5 years ago #

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

    [download_cat#id]

    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