WordPress.org

Ready to get started?Download WordPress

Forums

Download Monitor
[resolved] Order DESC doesn't work completely (7 posts)

  1. mvanboordt
    Member
    Posted 11 months ago #

    Hi,

    I have this strange issue sinds last week.
    I name my files by date.
    So if I create a new file and the date is 2012_01_01_name_of_file.pdf my overview page puts it on top of the list.
    The shortcode I use is: [downloads query="category=3&order=DESC"]
    This works partially because everything I did before last week still get's orders DESC but the new uploads not anymore.

    Any ideas?

    http://wordpress.org/plugins/download-monitor/

  2. mikejolley
    Member
    Plugin Author

    Posted 10 months ago #

    Add orderby=name just in case as well. And ensure all date formats are in the same format i.e. YYYY-MM-DD otherwise that won't work.

  3. mvanboordt
    Member
    Posted 10 months ago #

    @mikejolley

    Thnx for your responce.
    Didn't work and I allready tried that.
    The names are the same and so is the date.
    I checked the DB and I can't find anything strange.

    I checked the FTP server and there is anything strange.
    I have the latest version and didn't have to upgrade.

    I notice that I haven't upgraded WP itself so I'll do that.
    I have 2 other plugins that need an upgrade so I'll do them to.

    If that still doesn't work I'll deactivate my plugins and see where that get's me.

    I still think it's strange because this happend all of a sudden. In the mean time nothing changed...

    Hit me if you can think of something else

    Thnx!
    M.

  4. mvanboordt
    Member
    Posted 10 months ago #

    I did everything I can think of to get this working again but failed everytime.

    1. Deactivate all the plugin's
    2. Upgraded every plugin, WP-version and Theme's
    3. Activated the Twenty-(ten, eleven, twelve and thirteen) theme
    4. Tried every shordcode add-on possible
    5. Re-installed the plugin

    So the only thing now is that I break open the code from the plugin (which I reather not do) and try to understand what might happen.

    There are no error's what so ever so I'm kinda looking for a needle in a haystack.

    M.

  5. mikejolley
    Member
    Plugin Author

    Posted 10 months ago #

    Just realised something. If this is the new DLM, the 'query' arg is no longer used.

    [downloads category="3" orderby="date" order="DESC"]

  6. mvanboordt
    Member
    Posted 10 months ago #

    Ohw woow!
    That makes a difference.
    Thnx

    However I now only get 5 results at random and from different categories.
    I'll take a look at the shortcode possibilities

    Thnx for your reply!

  7. mikejolley
    Member
    Plugin Author

    Posted 10 months ago #

    Yeah, category should be a slug. e.g. category="my-category"

    See https://github.com/mikejolley/download-monitor/wiki/Shortcode%20Reference#the-downloads-shortcode

Reply

You must log in to post.

About this Plugin

About this Topic