Wordpress - Get template file used


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. get_post_meta($post->ID,'_wp_page_template',true)

URL: http://extralogical.net/2007/06/detect-template/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.