Change if($meta = "yes")
to if($meta == 'yes')
. Your way is setting the variable to yes, so it’s always yes; the double equals symbol means to test for a condition rather than set it.
Change if($meta = "yes")
to if($meta == 'yes')
. Your way is setting the variable to yes, so it’s always yes; the double equals symbol means to test for a condition rather than set it.