Question about the loop and template parts
-
I just need clarification on this.
As I understand it you should only create a loop in the template/archive file where the
get_header();
is and not/(also) in thetemplate_part
file.My reason for asking is because I have an achieve index page that starts the loop and then query the
get_template_part()
for the content.But in the template-parts file I need to echo the custom taxonomy slug in the div class, so I can filter it with Isotope.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Question about the loop and template parts’ is closed to new replies.