Tag: templates

  • Theme Composition vs Frameworks

    For a long time, theme frameworks have been the primary alternative to building things from scratch in WordPress, and to a lesser extent, starter themes. There is a better way. Starter Themes & Frameworks Starter themes work on the paradigm of adding and replacing. You’re given a theme that represents the ‘halfway’ mark and add…

  • Getting From URL to Template

    So you load a page on a WordPress site. How did it know to load the page template? How did it know it was a page and not a category listing? Is it hardcoded somewhere? To begin with lets list out what happens, then we’ll explain each step in basic terms: .htaccess rules pass the URL…

  • Audio.php

    A lot of the talk about, and the APIs for attachments are centered around images. After all it’s their most common use case by a huge margin. But what about audio? I won’t pretend this is a comprehensive guide, but considering the lack of basic examples, here’s how to implement a basic audio attachment template.…