The the_title()
echo the title. You must use get_the_title()
instead. get_the_title() returns the title as string. Use
<? echo urlencode(get_the_title()) ?>
The the_title()
echo the title. You must use get_the_title()
instead. get_the_title() returns the title as string. Use
<? echo urlencode(get_the_title()) ?>