Which Theme File Is Used by WordPress to Render a Post?

WordPress uses a theme file to render a post. This file is located in the theme’s directory and is named post-template.php. The post-template.

php file includes a number of hooks that allow WordPress to render a post in a variety of ways. For example, the post-template.php file includes a hook that allows WordPress to render a post as a page.