Tag Archive: template tags

PHP ‘include’, ‘get_template_part’, and ‘require’: Best Practices


Including files in a PHP environment can be tricky for new developers.  There are no less than four ways to include a file: include, include_once, require, and require_once.  Moreso, there’s very subtle differences in the reasons behind using each one.  Throw in WordPress (which has its own specific flavor of include tag – get_template_part) and it can be downright confusing.  Using the wrong one,…

Continue Reading

Under the Hood with WordPress, Part 5: PHP/MySQL


This is Part 5 of a 6-part series on diving "under the hood" with WordPress. Today, we're covering PHP - the "PHP Hypertext Preprocessor" that runs, computes, analyzes, and stores your WordPress data. Intro HTML CSS - Introduction CSS - Examples PHP / MySQL jQuery Well, if you've made it this far, give yourself a silver star - you can now read and interpret the displayed…

Continue Reading