Home › Forums › ACF PRO › Getting number of times selected from relationship field › Reply To: Getting number of times selected from relationship field
The the only thing is why is it not ordering correctly, and I don’t have the answer for that. I found an example that’s similar to your code here http://scribu.net/wordpress/custom-sortable-columns.html and what you’re doing looks correct with the exception of the orderby
value that I mentioned above.
The only other thing that I notice is that in your original code in the first post has the name of the column as number
and in the second code you’re using a column name of count
If these aren’t the same then that would cause it.
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.