ID, 'sermon_speaker', array("fields" => "names")); $asp_sermon_series = wp_get_post_terms($post->ID, 'sermon_series', array("fields" => "names")); $asp_sermon_topic = wp_get_post_terms($post->ID, 'sermon_topics', array("fields" => "names")); $asp_sermon_book = wp_get_post_terms($post->ID, 'sermon_book', array("fields" => "names")); $asp_sermon_speaker_slug = wp_get_post_terms($post->ID, 'sermon_speaker', array("fields" => "slugs")); $asp_sermon_series_slug = wp_get_post_terms($post->ID, 'sermon_series', array("fields" => "slugs")); $asp_sermon_topic_slug = wp_get_post_terms($post->ID, 'sermon_topics', array("fields" => "slugs")); $asp_sermon_book_slug = wp_get_post_terms($post->ID, 'sermon_book', array("fields" => "slugs")); // Handles default Series image logic $asp_single_sermon_default_series_image = get_option( 'asp_single_sermon_default_series_image' ); if ( !empty( $asp_single_sermon_default_series_image ) ) { $asp_sermon_series_terms = wp_get_post_terms($post->ID, 'sermon_series'); if (!empty($asp_sermon_series_terms) && !is_wp_error($asp_sermon_series_terms)) { $asp_series_term = $asp_sermon_series_terms[0]; $asp_series_image_id = get_term_meta($asp_series_term->term_id, 'series-taxonomy-image-id', true); $asp_series_image = wp_get_attachment_image( $asp_series_image_id, 'large', false, array( 'alt' => $asp_series_term->name, 'loading' => 'lazy' ) ); } else { $asp_series_image = ''; } } // Handles sermon excerpt functions for grid view layout do_action('asp_excerpt_functions'); ?>
  • >

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

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

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

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

    post_type == 'sermons' && !empty($excerpt) && $asp_excerpt_word_count >= (int) $asp_expect_length) { $excerpt .= sprintf(' %3$s', get_permalink(get_the_ID()), $asp_target_control, __('read more', 'advanced-sermons')); } } else { $excerpt = get_the_excerpt(); $excerpt = apply_filters('the_excerpt', $excerpt); } if ( !empty($excerpt) || !empty($content)) { ?>