The Quick & Dirty:

  • 9+ years in the biz, 10 messing around
  • All the latest in HTML, CSS, JS & PHP (Sorry, no .net or Ruby skills yet)
  • Cross-browser compatible code from Photoshop or Illustrator files.. or napkins!
  • Custom Specialities in Wordpress theming & plugins, Twitter & jQuery
  • Subversion, server-log analysis, and blocking hack-attempts (of late).
  • Data/Project Geek. I ♥ timelines.

I’ve compiled some handy PHP functions I’ve had to whip up. More extensive code-samples are also available.


Wordpress-from-static HTML


WordPress Template Listing

When building a WP Theme, there’s plenty of resources within The Codex. I’m a huge fan of the Template Hierarchy page-map.. and the

WP is open enough to allow us to see the code.. wp-includes/theme.php shows lots of one-offs.. but no way to get a final-word on which template is being used.

wp-includes/post-template.php is kind enough to provide a list of potential templates in the get_body_class() function.

Here’s my function

function get_this_template(){
foreach($classes as $tid=>$templatename){
return $thistemplate; //Array ( [dirname] => /user/public_html/wordpress/wp-content/themes/wordpressTheme [basename] => archive.php [extension] => php [filename] => archive )

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
Posted in codeRelease, Software, wordpress, wordpressCode Tagged , , , , , , , , , , , , , , , Comments Off

Comments are closed.