Skip to content

Instantly share code, notes, and snippets.

View safranck's full-sized avatar

Suzette Franck safranck

View GitHub Profile
@safranck
safranck / 201.php
Created February 21, 2015 22:36
PHP 201
<?php
require 'inc-header.php';
$chapter = ( $_GET[ 'chapter' ] );
?>
<h3>Today is <?php echo myDate(); ?>.</h3>
@jasontucker
jasontucker / function.php
Created November 17, 2012 07:42
Display template name of the page you are currently on at the top of the page.
//WordPress uses a variable $template to store the template being used. Therefore, for debugging (not recommended for a live site), you can put this in your theme's functions.php:
add_action('wp_head', 'show_template');
function show_template() {
global $template;
print_r($template);
}