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.

Media Category Library
Problem with sorting (orderby date) (1 post)

  1. ebsremek
    Posted 3 years ago #


    [mediacat cats="cat1" orderby="date" order="DESC"]
    [mediacat cats="cat1" orderby="post_date" order="DESC"]

    This code should sort all listed files by date, but there's a little problem. It returns something like that:

    file1 -- categoryno1 -- 02/01/2013
    file2 -- categoryno1 -- 01/01/2013
    file3 -- categoryno2 -- 02/01/2013 (!!!)

    Template is simple:
    Return files sorted by date but in category1no1,
    Return files sortedy by date but in categoryno2,

    By categoryno1 I mean simple category of media file (not the category specified by medialibrary).

    Why is it happen ?
    Somebody could give me a solution how to change that ? In my opinion the results should be sorted by date but in absolute way like that:

    file1 -- categoryno1 -- 02/01/2013
    file3 -- categoryno2 -- 02/01/2013
    file2 -- categoryno1 -- 01/01/2013


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Media Category Library
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.