The problem is that the_title()
itself echoes its value, so you can’t use it within an echo
unless you set the echo parameter to false:
the_title( '', '', false );
The problem is that the_title()
itself echoes its value, so you can’t use it within an echo
unless you set the echo parameter to false:
the_title( '', '', false );