Tutorial by Examples

Code echo get_permalink(); Output The link of the current page, for example: http://website.com/category/name-of-post/
Code echo get_permalink( 44 ); Output The link of the post id:44, for example: http://website.com/category/name-of-post/
Code echo get_permalink( 44 , false ); Output The link of the post id:44 without the name of the post, for example: http://website.com/category/%postname%/

Page 1 of 1