Tag: PHP

  • 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…

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

    Today, we’re covering PHP – the “PHP Hypertext Preprocessor” that runs, computes, analyzes, and stores your WordPress data.

  • Better Know a WordPress Tag: ‘siteurl’

    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. …

  • Tired of Refreshing Your CSS Everytime You Make A Change?

    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…

  • Creating a WordPress Theme from a .PSD file – Part 3 (The WordPress Structure)

    In our quest to take a WordPress theme from start to finish (Photoshop to Functional Theme), we have reached what most people would call the end of their journey.  We’ve taken our Photoshop file, made the necessary slices and converted it to an .html file. If we wanted this page to remain a static web…