Include Custom Template File

To include a file in the themes folder in another theme file:

will include the file special.php in the current file.

Parameters are $slug and $name

will load navbar-special.php

ie:

slug = navbar (required)

and name = special (optional)

Leave a Comment