Skip to content

Instantly share code, notes, and snippets.

View billrobbins's full-sized avatar

Bill Robbins billrobbins

View GitHub Profile
@billrobbins
billrobbins / Action Bar (Gallery)
Created October 19, 2011 15:59
Test Embedding
@billrobbins
billrobbins / modified-form-header
Created October 20, 2011 20:29
MailChimp widget
<form id="signup" action="<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>" method="post">
@billrobbins
billrobbins / gist:1309210
Created October 24, 2011 14:49
Podcast Item Problem
<item>
<title>Medicare Enrollment Periods</title>
<itunes:author><a href="http://www.seniorcareministries.org/speaker/chris-langille/" rel="tag">Chris Langille</a></itunes:author>
<itunes:subtitle></itunes:subtitle>
<itunes:summary></itunes:summary>
<itunes:image href="http://cdn.seniorcareministries.org/wp-content/uploads/upfw/scm-itunes-artwork.jpg" />
<enclosure url="http://www.seniorcareministries.org/?attachment_id=985' rel='attachment wp-att-985" length="43397038" type="audio/mpeg" />
<guid>http://www.seniorcareministries.org/?attachment_id=985' rel='attachment wp-att-985</guid>
<pubDate>Sat, 22 Oct 2011 21:05:32 +0000</pubDate>
<itunes:duration>9:25</itunes:duration>
@billrobbins
billrobbins / newsletter-bar-cc.php
Created October 25, 2011 16:05
Constant Contact Foundation Newsletter
<div id="action-bar" class="shadow">
<h4 class="action-title"><?php echo of_get_option('newsletter_title'); ?></h4>
<p class="action-description"><?php echo of_get_option('newsletter-description'); ?></p>
<div class="action-form clearit">
<form name="ccoptin" action="http://visitor.r20.constantcontact.com/d.jsp" target="_blank" method="post" >
<input type="hidden" name="llr" value="gzdqd8cab">
<input type="hidden" name="m" value="1102568754982">
@billrobbins
billrobbins / modified-staff.php
Created October 25, 2011 20:58
Staff Posts Per Page
<?php $posts = query_posts( $query_string . '&orderby=menu_order&order=asc&posts_per_page=20' ); ?>
@billrobbins
billrobbins / speaker-text.php
Created October 27, 2011 16:22
Speaker Text Only
<?php
$terms_as_text = get_the_term_list( $post->ID, 'speaker', '', ', ', '' ) ;
echo strip_tags($terms_as_text);
?>
@billrobbins
billrobbins / podcast-notes.php
Created October 27, 2011 22:48
Conditional Podcast Notes
<?php if ($podcast_metabox->get_the_value('podcast2')): ?>
&nbsp;&ndash;&nbsp;<a href="<?php echo get_template_directory_uri(); ?>/includes/download.php?file=<?php $podcast_metabox->the_value('podcast2'); ?>">Notes</a>
<?php endif; ?>
@billrobbins
billrobbins / gist:1321136
Created October 27, 2011 22:50
Code to replace
&nbsp;&ndash;&nbsp;<a href="<?php echo get_template_directory_uri(); ?>/includes/download.php?file=<?php $podcast_metabox->the_value('podcast2'); ?>">Notes</a>
@billrobbins
billrobbins / podcast-widget-notes.php
Created October 27, 2011 22:53
Podcast Widget Notes
<?php if ($podcast_metabox->get_the_value('podcast2')): ?>
<span class="notes"><a href="<?php echo get_template_directory_uri(); ?>/includes/download.php?file=<?php $podcast_metabox->the_value('podcast2'); ?>">Notes</a></span>
<?php endif; ?>
@billrobbins
billrobbins / gist:1323408
Created October 28, 2011 20:06
Posts Per Page
<?php $posts = query_posts( $query_string . '&orderby=menu_order&order=asc&posts_per_page=20' ); ?>