wordpress get link to post by id 1

wordpress get link to post by id

get_permalink();

Here is what the above code is Doing:
1. We’re getting the current post’s ID.
2. We’re getting the current post’s URL.
3. We’re getting the current post’s title.
4. We’re getting the current post’s author.
5. We’re getting the current post’s author’s URL.
6. We’re getting the current post’s permalink.

Similar Posts