Support » Fixing WordPress » Get the permalink having the id

  • Marcomail

    (@marcomail)


    Hi. how can i get the permalink if i have the id ? This doesn’t work

    <?php $id = $post->ID; ?>
    <a href="<?php get_post_permalink ( '$id' , $leavename = false, $sample = false ) ?>

    ? Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Get the permalink having the id’ is closed to new replies.