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
// Allows the audio player to be added on single sermons via the [themer_sermon_audio] shortcode | |
add_shortcode('themer_sermon_audio', function( $atts, $content = null ){ | |
return wpfc_render_audio( get_wpfc_sermon_meta( 'sermon_audio' ) ); | |
}); | |
// Allows the audio player to be added on single sermons via the [themer_sermon_slides] shortcode | |
add_shortcode('themer_sermon_slides', function( $atts, $content = null ){ | |
return get_wpfc_sermon_meta( 'sermon_video' ); | |
}); |
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 | |
/** | |
* Genesis Framework. | |
* | |
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
* Please do all modifications in the form of a child theme. | |
* | |
* @package Genesis\Search | |
* @author StudioPress | |
* @license GPL-2.0+ |
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 | |
// Enable FacetWP Locator | |
add_filter( 'facetwp_proximity_store_distance', '__return_true' ); | |
$distance = facetwp_get_distance(); | |
if ( false !== $distance ) { | |
echo round( $distance, 2 ); | |
} |
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 custom content to posts | |
add_action( 'genesis_entry_content', 'ch_add_text_block'); | |
function ch_add_text_block() { | |
// check if the flexible content field has rows of data | |
if( have_rows('content') ): | |
// loop through the rows of data |
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_entry_content', 'rainbow_assemblies_of_ca' ); | |
function rainbow_assemblies_of_ca() { | |
if ( have_rows('assemblies_of_ca') ): | |
while ( have_rows('assemblies_of_ca') ) : the_row(); ?> |