I have the following code:
$locationcheck = wp_strip_all_tags( get_the_term_list( get_the_ID(), 'project_location', ' ', ' , ', ' ') );
And I want to check if the value of $locationcheck is equal to ">> Online/Remote <<"
However, I am getting stuck with the >> and << as it doesn't seems to be recognising it.
The code I am using, which works fine if I check for a different value without >> and <<, is as follows:
if($ProjectTheme_enable_project_location == "yes" AND $locationcheck <> ">> Online/Remote <<"):
Can someone advise - do I need to amend the >> and << to something else in the above code (I can't change the actual value) or apend something to them?