Answers for "the_permalink()"

PHP
2

wordpress loop permalink

<?php echo get_post_permalink() ?>
Posted by: Guest on December-02-2020
3

wordpress get_permalink

// Get post permalink (you can use it inside a wp_query loop)
<?php the_permalink(); ?>
// or
<?php $link = get_the_permalink(); ?>
Posted by: Guest on February-25-2021

Browse Popular Code Answers by Language