Passing variables to template parts
Question
I have one template file videos.php which has the following line of code in it (aswell as a load of HTML):
<?php get_template_part('loop', 'feed-videos' ); ?>
inside that template part, I have the following:
<?php $video = 'video-
0
get-template-part, globals, include, templates, variables
3 years
0 Answers
57 views