phpMoot
phpMoot > PHP - Examples > PHP – WordPress – Get the Current Page Template Name
Author: phpMoot June 5, 2013 0 Comments
PHP - Examples
This following PHP example helps you to get the current page templage name in WordPress.
Code Example:
<?php global $post; $page_tempate_name = get_post_meta($post->ID,'_wp_page_template',true) ?>
← Previous post
Next post →
Your email address will not be published. Required fields are marked *