ID ), 'single-post-thumbnail' ); if( is_array( $sermon_featured_image ) ){ $sermon_featured_image_url = $sermon_featured_image[0]; } else { $sermon_featured_image_url = ""; // False } global $asp_archive_slug, $asp_speaker_label, $asp_speaker_label_slug, $asp_topic_label, $asp_topic_label_slug, $asp_book_label, $asp_book_label_slug, $asp_sermon_label, $asp_sermon_label_slug, $asp_date_format; // Handles sermon view count setSermonsViews(get_the_ID()); ?>
ID, 'asp_sermon_soundcloud', true); ?> ID, 'asp_sermon_mp4', true); ?> ID, 'asp_sermon_audio_embed', true); ?> ID, 'asp_sermon_pdf', true); ?> ID, 'asp_sermon_bulletin', true); ?> ID, 'sermon_series', array("fields" => "names")); ?> ID, 'sermon_series', array("fields" => "slugs")); ?> ID, 'sermon_topics', array("fields" => "names")); ?> ID, 'sermon_topics', array("fields" => "slugs")); ?> ID, 'sermon_speaker', array("fields" => "names")); ?> ID, 'sermon_speaker', array("fields" => "slugs")); ?> ID, 'sermon_book', array("fields" => "names")); ?> ID, 'sermon_book', array("fields" => "slugs")); ?> 'sermon_speaker', 'object_ids' => $post->ID, 'orderby' => 'meta_value_num', 'meta_key' => 'asp_term_order', 'order' => 'ASC' )); } else { $terms = get_the_terms($post->ID, 'sermon_speaker'); } // Get speaker images $asp_speaker = array(); if (!empty($terms) && !is_wp_error($terms)) { foreach ($terms as $term) { $image_id = get_term_meta($term->term_id, 'speaker-taxonomy-image-id', true); if ($image_id) { // Store images with the slug as the key for matching $asp_speaker[$term->slug] = wp_get_attachment_image($image_id, "medium", false, array("alt" => esc_attr($term->name))); } } } ?>

: $series) { $i++; // Check the permalink structure if ( get_option( 'permalink_structure' ) ) { // pretty permalinks echo "" . esc_html( $series ) . ""; } else { // non-pretty permalinks echo "" . esc_html( $series ) . ""; } if ($i < $count) { echo ", "; } } ?>

: $topic) { $i++; if (get_option('permalink_structure')) { echo "" . esc_html( $topic ) . ""; } else { echo "" . esc_html( $topic ) . ""; } if ($i < $count) { echo ", "; } } ?>

: $book) { $i++; if (get_option('permalink_structure')) { echo "" . esc_html( $book ) . ""; } else { echo "" . esc_html( $book ) . ""; } if ($i < $count) { echo ", "; } } ?>

$speaker) { $speaker_slug = isset($asp_sermon_speaker_slug[$index]) ? esc_attr($asp_sermon_speaker_slug[$index]) : ''; // Sanitize slug ?>

" . esc_html($speaker) . ""; ?>