Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_permalink()

3 tags 1 category

get_permalink() — Retrieves the full permalink for the current post or post ID.

Inputs: $post (int|WP_Post): Optional. Post ID or post object. Default is the global $post. $leavename (bool): Optional. Whether to keep post name or page name. Default false.

Returns string|false: The permalink URL. False if the post does not exist.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…