Is there any way to use get_template_part() with folders?

Posted by Editorial Staff | Updated on

In fact you can, I have a folder in my theme directory called /partials/ in in that folder I have files such as latest-articles.phplatest-news.php and latest-statements.php and I load these files using get_template_part() like:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers