Theme Check
[resolved] [Plugin: Theme-Check] Including files (2 posts)

  1. George Mamadashvili
    Posted 4 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?


  2. Simon Prosser
    Theme Review Admin
    Plugin Author

    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic