Like SirAdrian already mentioned, $post['posts'] is NOT numeric, but formatted so it is a string.
Doing a numeric comparison on a string will first cast the variable to numeric ('1,000' will result in the longest integer possible from the start of the variable, resulting in '1' - everything after the comma gets ignored).
If you want to run a conditional on this, you will need to create a plugin that stores the original numeric value in a seperate variable, before formatting occurs.
|