the_guid ( $post = 0 )

  • (int|WP_Post) $post Optional. Post ID or post object. Default is global $post.
Defined at:


Display the Post Global Unique Identifier (guid).

The guid will appear to be a link, but should not be used as a link to the post. The reason you should not use it as a link, is because of moving the blog across domains.

URL is escaped to make it XML-safe.

Related Functions

the_id, get_the_guid, get_the_id, the_widget, the_author_id

Top Google Results

User discussions

wpseek mobile