I've been getting used to changing things from include Templatepath to get template part, but for the first time I am finding the get_template_part is not working but the include is. This is what I have for both where I tried one or the other:
<?php include (TEMPLATEPATH . "/includes/customfields.php"); // get the custom field variables ?> <?php get_template_part( 'includes/customfields' ); ?>
What I have is an include file: page-headers.php which used the include TEMPLATEPATH to get another file that contains only custom fields I created to add a page header with an image overlay title, caption, button, etc. But for the first time, I am discovering the TEMPLATEPATH works but if I change it to the get_template_part, it doesn't work. I also just directly added the custom field variables directly in this page-headers.php file and it worked too, but why would the get template part not work this time around?
Thanks in advance.