Why do we do <?php get_template_part($slug, $name); ?>?
Is it just a naming thing?
Lets say I wanted to make different types of single files, like single-media, single-sidebar.
These are all files I will call on the single page.
Is this just a naming thing? is there any use for the ‘slug’?
- The topic ‘Why We Do Get Template Part’ is closed to new replies.