Template Part vs Include and Naming Conventions
-
I am working on my own theme and am beginning to use template parts.
What I’m a little confused about is when to use template parts or includes.
For example, I have a chunk of code that displays social sharing widgets. Should that be an include or a template part?
Also, what would I name that file according to best practices if there are any?
All the examples I have found always reference the loop index wordpress template part. I get that example for overriding child theme parts blah blah blah.
Thoughts?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Template Part vs Include and Naming Conventions’ is closed to new replies.