Skip to content

Instantly share code, notes, and snippets.

@robbm76
robbm76 / display_featured_image.php
Last active January 25, 2017 16:05
Display featured images on select single posts in Genesis.
@robbm76
robbm76 / map_featured_image.php
Last active August 30, 2016 20:26
Maps ACF text field 'last_name' to post title.
@robbm76
robbm76 / sermon-loop.php
Created May 18, 2016 12:30
Sermon loop example
<?php ?>
<?php
while ( have_posts() ): the_post();
$speakers = get_the_terms( get_the_ID() , 'speaker' ); ?>
<div class="sermon">
<div class="sermon-archive-date one-sixth first">
<?php the_field( 'sermon_date' ); ?>
</div>
/* Degree List
----------------------------------*/
// CPT Slug = 'degree'
// TAX Slug = 'school'
add_shortcode( 'degree_list', 'mbu_degree_list_shortcode' );
function mbu_degree_list_shortcode ( $atts, $content = null ) {
extract( shortcode_atts( array(
'school' => ''
),