0
<?php
get_template_part('template/sliders/<?php echo $template1; ?>', 'home');
?>

this <?php echo $template1; ?> not work in path string any another way to make it work im use wordpress

3

Looks like a syntax error, this should work for you:

get_template_part('template/sliders/' . $template1, 'home');

Not the answer you're looking for? Browse other questions tagged or ask your own question.