get_the_title() with if statement problem
-
If i have a post with title
1'1
and i use
if('1\'1'== get_the_title){ echo 'working'; }
the if statement will be false, why is that and what is the workaround for it, i already
tried the_title()
.the_title_attribute()
and using double quotes.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘get_the_title() with if statement problem’ is closed to new replies.