'',
'echo' => 0,
'number' => 5,
'depth' => 1,
) );
echo '';
}
function byline_search_title() {
global $wp_query;
$num = $wp_query->found_posts;
printf( __( '%1$s search results for "%2$s"', 'byline'),
absint( $wp_query->found_posts ),
get_search_query()
);
}
function byline_word_count() {
return sprintf(
__( '%s words', 'byline' ),
str_word_count( strip_tags( get_post_field( 'post_content', get_the_ID() ) ) )
);
}
add_action( 'post_class', 'byline_post_class' );
function byline_post_class( $classes ) {
if ( is_singular() || is_404() ) {
$classes[] = 'big-header';
}
return $classes;
}
add_filter( 'excerpt_more', 'byline_excerpt_more' );
if ( ! function_exists( 'byline_excerpt_more' ) ) {
function byline_excerpt_more( $more ) {
$byline_default_theme_options = byline_default_theme_options();
return '… ';
}
}
add_filter( 'the_content_more_link', 'byline_remove_more_link_scroll' );
if ( ! function_exists( 'byline_remove_more_link_scroll' ) ) {
function byline_remove_more_link_scroll( $link ) {
return preg_replace( '|#more-[0-9]+|', '', $link );
}
}