(',')'), array('',' '), $links); } } add_filter('wp_list_categories', 'bloomy_cat_count'); if(!function_exists('bloomy_archive_count')){ function bloomy_archive_count($links) { return str_replace(array(' (',')'), array('',' '), $links); } } add_filter('get_archives_link', 'bloomy_archive_count'); /*-----------------------------------------------------------------------------------*/ /* Modify Tag in Posts /*-----------------------------------------------------------------------------------*/ // Prevent Page Scroll When Clicking the More Link function remove_more_link_scroll( $link ) { $link = preg_replace( '|#more-[0-9]+|', '', $link ); return $link; } add_filter( 'the_content_more_link', 'remove_more_link_scroll' ); /*-----------------------------------------------------------------------------------*/ /* Custom Logo /*-----------------------------------------------------------------------------------*/ /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * */ function bloomy_custom_logo() { if ( has_custom_logo() ) { the_custom_logo(); } else { ?>
1, 'prev_text' => '→ ' . __( 'Previous', 'bloomy' ), 'next_text' => __( 'Next', 'bloomy' ).' ←', ) ); } else { the_posts_pagination( array( 'mid_size' => 1, 'prev_text' => '← ' . __( 'Previous', 'bloomy' ), 'next_text' => __( 'Next', 'bloomy' ).' →', ) ); } else: ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|