Viewing 2 replies - 1 through 2 (of 2 total)
  • Naveen Kharwar

    (@naveenkharwar)

    To get current post url outside loop add this snippet in your single.php.

    <?php echo get_permalink( $post->ID ); ?>

    Thread Starter javadth

    (@javadth)

    thanq @naveenkharwar

    now if I wanna show this URL in page or post edit pages what should I do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plugin or code to show posts Default Permalinks’ is closed to new replies.