Home › Forums › General Issues › Trying to check for number › Reply To: Trying to check for number
Thanks for your reply james, the code sort of worked, but I still have a problem.
It now evaluates to “false” all the time, and nothing whatsoever shows up. I have tested it on an airfield that I know has just a number in that field (rufforth is 1500) I also checked in the back end.
Is this because ACF treats all “text” fields as text?, it is therefore seeing 1500 as text and not an integer? Therefore evaluating to false?
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.