The most easy method to display your permalink content in WordPress is using simply code. Because for some reason, we need to display Permalinks Outside our Standard WordPress Loop.
It’s can be done in WordPress with easily steps, just write down this code below in your theme files Outside your WordPress Look
<!-- external permalink via post ID --> <a href="<?php echo get_permalink(33); ?>" >Permalink</a> <!-- external permalink via global $post variable --> <a href="<?php echo get_permalink($post->ID); ?>" >Permalink</a>
And done, it’s easily right? I hope tips how to display permalinks outside of the loop work without any worries work on you. Thanks for Julien Chauvin share this code



Thanks so much, superb advice, solved my coding issue nicely A1
This is awesome! Thank you so much for this… It saves my blog.
Keep up the good work! Good day!
Thanks for the codes.
I have some that do the same thing with some variation. I thought these might be useful for other purposes.
This one displays the Title of the Post as article
=====================
<a href="” title=”">
==============================
This one displys the post url as the anchor text.
================================
<a href="” >
===========================
Thank you for this code. Helped me a lot .
Thank you so much for the codes. Nice blog, too. I’ve been checking out other pages and a lot have piqued my interest. Keep posting!