echo '<a href="' . get_permalink() . '">' . the_title() . '</a>';

The link works if I just put text where the_title(); is. With the_title(); the text displays but the anchor is at 0 width.

Read more here: how to echo anchor with php href and php in the middle


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: