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

Glossary Term

get_page_template_slug()

3 tags 1 category

get_page_template_slug() — Gets the specific template filename for a given post.

Inputs: $post (int|WP_Post|null): Optional. Post ID or WP_Post object. Default is global $post.

Returns string|false: Page template filename. Returns an empty string when the default page template is in use. Returns 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…