post_exists() returns a 0 but the 0 doesn’t register [closed]
You’re not checking the value correctly. A single = sign is the assignment operator. So when you write $variable = 0 you are setting the variable to 0. This happens regardless of whether or not you’re in an if statement. So when you write if ( $testvalue = 0 ) { you’re setting $testvalue to … Read more