Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get_permalink

// Get post permalink (you can use it inside a wp_query loop)
<?php the_permalink(); ?>
// or
<?php $link = get_the_permalink(); ?>
// outside the loop:
<?php echo get_permalink( $post->ID ); ?>
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
7+3 =