This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Code to Display Featured Image on top of the post */ | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) return; | |
the_post_thumbnail('post-image'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'genesis_before_entry', 'featured_post_image', 8 ); | |
/** | |
* Add the post thumbnail to single post | |
*/ | |
function featured_post_image() { | |
if ( ! is_singular( 'post' ) ) | |
return; | |
the_post_thumbnail( 'post-image' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// set image upload as featured image | |
function acf_set_featured_image( $value, $post_id, $field ){ | |
if($value != ''){ | |
//Add the value which is the image ID to the _thumbnail_id meta data for the current post | |
add_post_meta($post_id, '_thumbnail_id', $value); | |
} | |
return $value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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' => '' | |
), |