Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

get_the_title() with if statement problem

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles