In a geo based directory I'm showing, at the city level, the businesses in that city.
I would like to show first the featured business (there can be at maximum one at a time for a city) and then the others, not really matter their order.
The featured listing has a checkbox custom field flagged (value=1 if flagged, 0 if not)
If I set the display order by the 'featured' field, whichever type (string/number/native cf), only the featured business is shown but not all the others...
Hello. Thank you for contacting the Toolset support.
That is because when you set the view to roder by custom field, it will only recognize the results where custom field value is present/available.
There are multiple ways to fix this, either you can create two views, one that displays featured posts first and another view to display non-feature posts.
If you do not want to go with multiple views, then we will have to add custom hook that should merge both featured and non-featured posts.
Can you please let me know with what option you would like to go with.
If you want to use single view, then I will require problem URL wherey you added your view and admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
It seems to me the simpler way (also for me to manage it in the future) is creating 2 views.
Should I order the first by the featured CF and the second excluding the featured listing with a filter?