• Resolved smcrmo

    (@smcrmo)


    Hi, I really love this plugin for a variety of uses, however, I’ve come up against an issue I can’t resolve. I am trying to make a simple single category list of 10 posts using the post ID for the category and creation date to sort the list. Here is the shortcode I’m using:

    [catlist id=403 orderby=date=asc]

    I can set it to either asc or desc, it returns the list in the same order. Is there something wrong with my implementation?

    Thanks for any help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Hi

    You have slightly misunderstood the parameters. orderby=date=asc is incorrect and doesn’t work. You have to use both order and orderby parameters as in the documentation:

    order – How to sort orderby. Valid values are:
    
        ASC – Ascending (lowest to highest).
        DESC – Descending (highest to lowest). Ex: [catlist name=mycategory orderby=title order=asc]
    

    So in your case the correct shortcode would be [catlist id=403 orderby=date order=asc]

    Thread Starter smcrmo

    (@smcrmo)

    I see the mistake, it works perfectly now. Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Orderby parameter not working’ is closed to new replies.