George Mamadashvili
Member
Posted 2 years ago #
Hello, guys!
When you're working with theme framework e.g. Thematic, there are a lot of files included from separate folders, but Theme Check recommends to include this files using get_template_part() which can't be done, because get_template_part() only includes files from theme folder. Any idea how can we include files more WordPress way from separate folders?
http://wordpress.org/extend/plugins/theme-check/
It is not recommending anything.
INFO: functions.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Its perfectly fine to use require/include to include php code.