You can get the filename of the page template that the post in the WordPress admin is set to using: $page template = get_post_meta( $post->ID, ‘_wp_page_template’, true ); The function below gets the filenameĀ of the page template, then returns true if it matches the desired page template, or false if not.This is useful if you […]

Read more