Doubt about template-Parts in wordpress

Asked

Viewed 33 times

1

I’ve seen that in various wordpress themes has the folder template-Parts and that in this folder there are files for example: content.php and etc... and that these files are loaded in other parts of the theme with the get-templates-Parts function(...);

My question is, if I create a wall.php example file inside the template-Parts folder containing a few lines of code and then I call this wall.php inside the header.php it employee normally or not? Is there a rule for using that folder? I can create my custom.php files to reduce other code that got too big or not?

  • or can someone at least explain to me what this folder is for?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.