echo the_title(); yanlış bir kullanım. Çünkü the_title() fonksiyonuna bakarsanız zaten echo yapıyor.
https://developer.wordpress.org/refe...ons/the_title/

Doğru kullanım ise: echo get_the_title();