WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ebsremek
    Member
    Posted 1 year ago #

    Hi,

    [mediacat cats="cat1" orderby="date" order="DESC"]
    or
    [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,
    etc..

    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

    http://wordpress.org/extend/plugins/media-category-library/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.