Home › Forums › Backend Issues (wp-admin) › Sort by a customfield while showing all posts › Reply To: Sort by a customfield while showing all posts
Hi @kwoodall,
Without seeing your code, all I can suggest is setting a Vendors rating default value to zero, or to a number outside the scope of your rating system (eg -1 or 11 could represent unrated on a scale of 0 to 10, depending on where you want the unrated Vendors to appear)
You would then have a statement set up to print out “unrated” or something else suitable instead of the number.
If this doesnt help, feel free to post the code (in back ticks please) that has got closest to what you want, and we’ll see what we can do.
Cheers
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.