If you’re not afraid to get your hands dirty, you can edit the content-sermon-archive.php
file. While this isn’t specifically for your issue, this link will help in finding and copying the file you need: https://wpforchurch.com/my/knowledgebase/69/Modifying-the-Excerpt-of-a-Sermon-Archive.html
So you will need to copy a section from content-sermon-single.php
to content-sermon-archive.php
.
When you have your content-sermon-archive.php
file open, find this:
<?php if ( \SermonManager::getOption( 'archive_player' ) ) : ?>
<div class="wpfc-sermon-audio">
<?php echo wpfc_render_audio( $post->ID ); ?>
</div>
<?php endif; ?>
Delete that and use this:
<?php if ( get_wpfc_sermon_meta( 'sermon_audio' ) || get_wpfc_sermon_meta( 'sermon_audio_id' ) ) : ?>
<?php
$sermon_audio_id = get_wpfc_sermon_meta( 'sermon_audio_id' );
$sermon_audio_url_wp = $sermon_audio_id ? wp_get_attachment_url( intval( $sermon_audio_id ) ) : false;
$sermon_audio_url = $sermon_audio_id && $sermon_audio_url_wp ? $sermon_audio_url_wp : get_wpfc_sermon_meta( 'sermon_audio' );
?>
<div class="wpfc-sermon-single-audio player-<?php echo strtolower( \SermonManager::getOption( 'player', 'plyr' ) ); ?>">
<?php echo wpfc_render_audio( $sermon_audio_url ); ?>
<a class="wpfc-sermon-single-audio-download"
href="<?php echo $sermon_audio_url; ?>"
download="<?php echo basename( $sermon_audio_url ); ?>"
title="<?php echo __( 'Download Audio File', 'sermon-manager-for-wordpress' ); ?>">
<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24"
xmlns="https://www.w3.org/2000/svg">
<path d="M0 0h24v24H0z" fill="none"></path>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM17 13l-5 5-5-5h3V9h4v4h3z"></path>
</svg>
</a>
</div>
<?php endif; ?>
I just did this using ‘SeventeenTwenty’ on our testing site and it works fine.