Answers for "get_permalink()"

PHP
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
0

wordpress get link to post by id

get_permalink();
Posted by: Guest on October-17-2020
0

wordpress get link

<a href="<?php the_permalink(); ?>">
Posted by: Guest on May-21-2020

Browse Popular Code Answers by Language