You can include the template like this include(locate_template('template-part.php'));
. to pass the variable or used the outer variable/ dynamic values in the template.
You can include the template like this include(locate_template('template-part.php'));
. to pass the variable or used the outer variable/ dynamic values in the template.