max_num_pages < 2 ) { return; } ?> '', 'echo' => 0, 'number' => 5, 'depth' => 1, ) ); echo ''; } function abc_search_title() { global $wp_query; $num = $wp_query->found_posts; printf( __( '%1$s search results for "%2$s"', 'byline'), absint( $wp_query->found_posts ), esc_html( get_search_query() ) ); } function abc_word_count() { return sprintf( __( '%s words', 'byline' ), str_word_count( strip_tags( get_post_field( 'post_content', get_the_ID() ) ) ) ); } add_action( 'post_class', 'abc_post_class' ); function abc_post_class( $classes ) { if ( is_singular() || is_404() ) { $classes[] = 'big-header'; } return $classes; } add_filter( 'excerpt_more', 'abc_excerpt_more' ); if ( ! function_exists( 'abc_excerpt_more' ) ) { function abc_excerpt_more( $more ) { $abc_default_theme_options = abc_default_theme_options(); return '…
' . abc_sanitize_text( get_theme_mod( 'read_more_text', $abc_default_theme_options['read_more_text'] ) ) . ' ' . get_the_title() . '
'; } } add_filter( 'the_content_more_link', 'abc_remove_more_link_scroll' ); if ( ! function_exists( 'abc_remove_more_link_scroll' ) ) { function abc_remove_more_link_scroll( $link ) { return preg_replace( '|#more-[0-9]+|', '', $link ); } }