Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author DesignsAndCode

    (@designsandcode)

    Hey Mazinger, the orderby and order, only affect the order of items in your dropdown or checkbox etc, they do not affect the search results…

    The pro version allows you to affect the order of the search results.

    Thanks

    Thread Starter Mazinger

    (@mazinger)

    Hello,

    I’m talking about the order in the dropdown menu actually, it always list objects by name… changing order to count/ID or anything doesn’t work.

    Plugin Author DesignsAndCode

    (@designsandcode)

    Hmmm not sure really –

    What does your shortcode look like? I guess there may be a syntax error in that case.

    Thanks

    Thread Starter Mazinger

    (@mazinger)

    Here’s it:

    [searchandfilter taxonomies="search,category,field" headings="Search For, In, In" submit_label="Search" hierarchical=",1,1" hide_empty=",0,0" order_by=",count,count" order_dir=",asc,asc" search_placeholder="Search for..." all_items_labels=",Search,All"]

    Plugin Author DesignsAndCode

    (@designsandcode)

    What happens if you try a different order_by value (such as name)?

    Thread Starter Mazinger

    (@mazinger)

    Nothing changes at all. Even if I change “order” too.

    Plugin Author DesignsAndCode

    (@designsandcode)

    Hey Mazinger

    I’m finding it hard to see where the problem would be – my best guess is that another plugin is interferring with the ordering of these.

    Can you try a shortcode from the demo on a random page and see if you are getting the correct results? (This will just ensure that there is not a typo in the above):

    [searchandfilter fields="search,category,post_tag" order_dir=",asc,desc" order_by=",id,name" types=",checkbox,radio" headings=",Categories,Tags"]

    Thanks

    Hello,
    I had the same problem. Now it works with:
    <strong>order_by="id"</strong>
    no comma!

    Something went wronk, again:
    order_by="id"

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘order by not working’ is closed to new replies.