WordPress.org

Support

Support » How-To and Troubleshooting » function to determine which template file is currently being in use

function to determine which template file is currently being in use

  • Hi, please, I cannot find any sitable function which could return the current page/post template file (.php) being in use 🙁

    I’ve tried get_page_template(), but that does not work e.g. for 404 or posts (either all posts nor single)…

    Thanks

  • The topic ‘function to determine which template file is currently being in use’ is closed to new replies.
Skip to toolbar