The WordPress Template Hierarchy

http://codex.wordpress.org/Template_Hierarchy

The General Idea

WordPress uses the Query String — information contained within each link on your web site — to decide which template or set of templates will be used to display the page.

To see the query string put this in your theme’s page template:

<?php
echo "<pre>"; print_r($wp_query->query_vars); echo "</pre>";
?>

WordPress matches every Query String to query types — i.e. it decides what type of page (a search page, a category page, the home page etc.) is being requested.

Templates are then chosen — and web page content is generated — in the order suggested by the WordPress Template hierarchy, depending upon what templates are available in a particular WordPress Theme. Read More

WordPress with GIT, WP-Skeleton and Roots 101

Goals: – Keep a local WordPress  installation under version control (but ignore WordPress core files) – Use WP-Skeleton (wordpress core as submodule in separated folder, content and config files in root) – Use the starter theme Roots 101 – Deploy to a staging and production server (depending on the current Git branch?) – Keep uploads out of version control, sync them separately – Use a good DB migration strategy – If possible: automate repetitive tasks Read More

cygwin permissions

I ran into some problems with files copied from the cygwin command line not having administrator permissions. WAMP for instance didn’t have access to these files, which is not fun.

I took this advice (found here)

As a general rule, if you are going to mix Cygwin and native tools, let windows handle file permissions ("noacl" mount option), and you'll not see such issues again.

Not sure if this is the best solution, but I added the option noacl to etc/fstab, rebooted Windows and it seems to work fine now.

# This is default anyway:
none /cygdrive cygdrive binary,noacl,posix=0,user 0 0

WordPress starter frameworks (free)

WordPress starter frameworks (free)

  1. Roots
    Roots is a starting WordPress theme made for developers that’s based on HTML5 Boilerplate, Blueprint CSS (or 960.gs) and Starkers that will help you rapidly create brochure sites and blogs. It has a bunch of excellent tweaks to WordPress, plus support for the best CSS frameworks including Foundation and 1140 Grid. This is a solid theme framework that is constantly updated and used by many developers, you cannot go wrong with it.
    Read More

Web Development – Tools of the Trade

What is what and why should I use it?

Javascript Frameworks

  1. Node.js Node.js (Node) is an I/O environment built on top of Google Chrome’s JavaScript runtime — essentially, a server-side implementation of JavaScript. Node’s asynchronous, event-driven I/O model makes it easy for developers with JavaScript knowledge to build high-performing, scalable, and highly concurrent web applications rapidly and run them in the cloud. Node.js uses an event-based server execution procedure rather than the multithreaded execution in PHP.Beginner’s Guide to Node.js Read More