Skip to content

Instantly share code, notes, and snippets.

<?php
/* WP-Resize: a TimThumb alternative using native WP functions. Original credit goes to Victor Teixeira (http://wpquestions.com/user/discourseShow/id/1981/discourse_id/20)
/* Example use:
<?php
$thumb = get_post_thumbnail_id();
<?php
/*
Functions
Author: Tyler Cunningham
Establishes the core theme functions.
Copyright (C) 2011 CyberChimps
Version 3.0
*/
/**
@cyberchimps
cyberchimps / droidpress-enqueue
Created October 24, 2011 04:21
droidpress enqueue
// Call Superfish/jQuery
if ( !is_admin() )
{
function droidpress_frontend_scripts()
{
// Adjust the below path to where scripts dir is, if you must.
$scriptdir = get_template_directory_uri() ."/library/sf/";
// Register the Superfish javascript file