During search in 2 meta key( say acf hr_archive_title and acf hr_archive_question ), I want to list down post in following order.
- first preference is post with searched text found in hr_archive_title
- then posts with searched text found in hr_archive_question
example data1: hr_archive_title - HR-fråga 1432 - Rekryteringsbonus; hr_archive_question - lorem ipsum
example data2: hr_archive_title - HR-fråga 1223 - Rekryteringskonsult i Norge - Rekryteringsbonus; hr_archive_question - Har det påverkat er rekryteringsprocess på något vis?
example data3: hr_archive_title - HR-fråga 1167 - Linkedin Recruiter; hr_archive_question - Har det påverkat er rekryteringsprocess på något vis?
Now when I search for 'Rekrytering' the listing should be as data1, data2, data3. Is this possible? Itried the following but to no avail. The listing is coming as mixed list.
Display results of one meta key and order by a different meta key
https://www.billerickson.net/wp-query-sort-by-meta/
https://wordpress.stackexchange.com/questions/218709/order-by-custom-field-value
Any help/suggestions are welcome.