Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Second order by Post Attributes Order?
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 5 years ago.
- AuthorPosts
- March 26, 2018 at 10:54 am #17271
Hi,
I don’t have a problem, but want to enable a second level ordering.I want the following for my search (https://www.wellkinhospital.com/find-a-doctor/), that doctors are ordered alphabetically by default (which is already the case), but when filtering per speciality (you’ll see the dropdown), I want the doctors to be ordered according to the Post Attributes order.
I used the options to change the order: https://prnt.sc/iwgnhy
However, I want to use this type of order when selecting a speciality : Post Attribute Order. (see attachement)
Possible?
Thanks
Attachments:
You must be logged in to view attached files.March 26, 2018 at 3:02 pm #17282Hi,
I think this might be possible with a custom code. I believe that field is the menu_order field, which is directly stored in the cpt database table.
I have mande a custom code, that might do the trick. Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
March 26, 2018 at 7:02 pm #17285Works great !
Thanks a lotMarch 27, 2018 at 10:03 am #17297You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.