However, in the front end only the properties with the “is_featured” field set as “true” are displayed. But what I want is the featured properties displayed first and then ALL the rest. What could be the problem?
I just found out what the problem was. All properties that had never been edited before the addition of the “is_featured” field had no value in that field (not even “false” value) that’s why they weren’t being displayed. To fix it I had tu run a process that added the “false” value to all properties that had no value set.
If you ask me, I think WordPress should still display at the end all posts that don’t have a value set in the custom field, but it looks like it just does not work that way.
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Sort by custom field filtering instead of sorting’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users