Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Order by custom field: menu_order
- This topic has 6 replies, 2 voices, and was last updated 5 years, 5 months ago by
Ernest Marcinko.
-
AuthorPosts
-
December 8, 2020 at 2:48 pm #30558
Halo52
ParticipantHello,
We had your Lite plugin previously and just upgraded to the Pro version so we an order results by a custom field.
I’ve read your docs here:
https://documentation.ajaxsearchpro.com/general-settings/result-ordering#ordering-by-custom-fieldsWe want to order the results by the WooCommerce Menu order attribute. Ref here;
https://wordpress.stackexchange.com/questions/84943/get-current-menu-orderBut When I enter ‘menu_order’ in the box it does not work. Please can you tell me how to order by this field?
Also, less important, but changing the ‘search box background color’ makes no change to the main background colour – it remains as red, even the the preview window. Please log in and try on our site. I tried to set to white.
Thanks,
DarrenDecember 8, 2020 at 4:24 pm #30565Ernest Marcinko
KeymasterHi,
The menu_order is not a custom field, it is stored as a table column in the posts table. Try choosing the ordering by menu order option, that will use that column: https://i.imgur.com/mRkyUpy.png
December 8, 2020 at 4:26 pm #30566Ernest Marcinko
KeymasterOn some themes the input field may overlay the box background, try changing the input field background, to see if that changes it: https://i.imgur.com/Hxw9VwN.png
December 9, 2020 at 2:02 pm #30591Halo52
ParticipantHi,
thaks the menu order suggestion worked great!
Still having issues with the theme tho. I had selected the option you suggested but the field is still red – please see: https://www.evernote.com/l/ARfdPRVkBTNOKYc6s8eqqtYw1Fw6QaJAHDs
December 9, 2020 at 2:17 pm #30595Ernest Marcinko
KeymasterYou are welcome.
You are looking at the wrong tab there, Theme & Styling -> Input field layout: https://i.imgur.com/TTj4D39.png
Also, the magnifier background may also be set to a the same color, in case it stays red: https://i.imgur.com/Oaum0pV.pngDecember 10, 2020 at 1:09 pm #30618Halo52
ParticipantHi, thanks for that. Silly me – I was on the wrong tab 🙂
Ok styling is all sorted now – thanks!
All is looking good now 🙂
December 10, 2020 at 1:22 pm #30620Ernest Marcinko
KeymasterYou cannot access this content.
-
AuthorPosts
- You must be logged in to reply to this topic.