Tag Archive: PHP

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

Tutorials

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

Tutorial

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

Better Know a WordPress Tag: ‘siteurl’

WordPress

When you’re working on a development site it’s hard to set things up correctly because you know you’re going to change the site, and putting in elements that are more than likely “stationary”, such as links, will have to be changed, and that causes un-necessary headache when it comes time to move the site live.  But, in the light of wanting to make your…

Continue Reading

Tired of Refreshing Your CSS Everytime You Make A Change?

Tutorial

So am I.  I  make changes a lot live on the server (using the Web Dev Toolbar), and I have to hard-refresh every time I make a change.  Doesn’t sound like a big deal, but it cuts down on valuable time that could be done… well, not refreshing a page.  There is a way; versioning your CSS file.  The upside: it makes changes go…

Continue Reading