Print the permanent URL of a post based on the ID

/ Published in: PHP
Save to your folder(s)

Where 123 is the post/page ID.

Copy this code and paste it in your HTML
  1. echo get_permalink(123);


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.