whats the mistake → href="get_permalink()

<?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()

Leave a Reply

Your email address will not be published. Required fields are marked *