You are using version of template tag that echoes result immediately and so unsuitable to concatenate in string. You should be using get_the_title()
for this purpose,
You are using version of template tag that echoes result immediately and so unsuitable to concatenate in string. You should be using get_the_title()
for this purpose,