Glossary Term
get_attachment_link()
3 tags
1 category
get_attachment_link() — Retrieves the permalink for an attachment. This can be used in the WordPress Loop or outside of it.
Inputs: $post (int|WP_Post): Optional. Post ID or object. Default uses the global $post. $leavename (bool): Optional. Whether to keep the page name. Default false.
Returns string: The attachment permalink.
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…
