Home › Forums › General Issues › String Comparison if statement, boolean comparison don't work on if statement › Reply To: String Comparison if statement, boolean comparison don't work on if statement
Not sure if these will be a complete solution, but here are a few things I noticed:
1. Try adding white space after your opening php tags:
<?php} else {?> // Incorrect
<?php } else { ?> // Correct
<?php}?> // Incorrect
<?php } ?> // Correct
2. Looks like you are missing a closing div for .img-container.
3. Does your code include an endwhile?
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.