Self comment template

<?php

/* Template Comment */
function wco_template_comment($file){
$replace = '/var/www/adam/weddingcolorado.org/wp-content/';
$template_loc = str_replace($replace,'',$file);
echo "<!-- Template: $template_loc -->";
}

//Add to the top of your template
wco_template_comment(__FILE__);

?>

0 Comments

You must be logged in to post a comment.