File Exists Function

$uploads = wp_upload_dir();
$wp_upload_directory = $uploads['basedir'];
//Check if quantum uploads exists and create
if (file_exists($wp_upload_directory . "/myNewDirectory")){
//Do Nothing
}
else {
mkdir($wp_upload_directory . "/myNewDirectory", 0777);
}

Edit Post Link

<!-- Edit post link -->
<?php

if (edit_post_link(__("Edit Post"), '') != ''){
edit_post_link(__("Edit Post"), '');
}?>

Pagination Query

<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'cat' => '9',
'paged' => $paged,
'posts_per_page' => 1
);
query_posts($args); ?>

Recent posts with date

<div id="recent-posts" class="widget">
<div class="widget-inner">
<div class="widgettitle">
<h3><a href="<?php bloginfo('url'); ?>/blog">News From Our Blog</a></h3>
</div>
<?php query_posts('&showposts=3'); ?>
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); $preview = get_post_meta($post->ID, 'preview', true); ?>
<li class="clearfix">
<div class="date">
<div class="month"><?php the_time('M'); ?></div>
<div class="day"><?php the_time('jS'); ?></div>
<div class="year"><?php the_time('Y'); ?></div>
</div>
<div class="info">
<h4><a href="<?php the_permalink() ?>" class="title"><?php the_title(); ?></a></h4>
<?php the_excerpt_reloaded(7, '<a>', 'excerpt', true, '&hellip;read more', false, 1, true, false, 'span', '', false); ?>
</div>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php wp_reset_query() ?>
</div>
</div>

//The CSS Part
#recent-posts p { padding-bottom: 0; }
#recent-posts li { padding-bottom: 1.1em; overflow: hidden; clear: both; }
#recent-posts .date { border: 1px solid #bbb; width: 45px; text-align: center; background: #fff; float: left; }
#recent-posts .date .month { padding: 2px; background: #990E01; color: #fff; text-transform: uppercase; font-size: .8em; }
#recent-posts .date .day { padding: 0 0 2px 0; font-size: 1.3em; }
#recent-posts .date .year { padding: 0 0 2px 0; background: #eee; border-top: 1px solid #bbb; font-size: .85em; }
#recent-posts .info { float: right; width: 205px; }
#recent-posts .info h4 { padding: 0 0 .15em 0; }

Gravity External Form

<?php
// include wordpress and gravity forms outside wordpress
require( '../wp-load.php' );
wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");
get_header(); ?>
<div id="content">
<div id="contentleft">
<div class="postarea">
<h1>My Membership Page</h1>
<div class="form">
<?php gravity_form(2, false, true); ?>
</div>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>

Link MouseOver sound

<script language="javascript" type="text/javascript">

function playSound(soundfile) {

document.getElementById("dummy").innerHTML=

"<embed src=""+soundfile+"" hidden="true" autostart="true" loop="false" />";

}

</script>

 <A HREF="YourPage.html" onmouseover="playSound('/wp-content/themes/quantum/beep_1.mp3');">Mouse over this text to hear a sound</A>