<?php echo '<h1><a href="get_permalink()">' . get_the_title() . '</a></h1>'; ?>

This is not generating the permalink →


I also tried this version →

<?php echo '<h1><a href="get_permalink()">' ?> <?php . get_the_title() . '</a></h1>'; ?>

whats wrong you can get the feel here →

Click Here

Click on any link it will not take you the desired single page as expected.

Please forgive me If you think I am doing a very silly mistake. we all were novice some day before we became a pro.

Read more here: whats the mistake → href="get_permalink()


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

Wordpress related questions and answers: