post_content; if ( ! empty( $post_obj->post_excerpt ) ) { $source_content = $post_obj->post_excerpt; } $source_content = preg_replace( '`\[[^\]]*\]`', '', $source_content ); $trimmed_content = wp_trim_words( $source_content, $length, '…' ); return $trimmed_content; } endif; if ( ! function_exists( 'busicare_button_title' ) ) : /** * Display Button on Archive/Blog Page */ function busicare_button_title() { if(get_theme_mod('busicare_enable_blog_read_button',true)==true): $blog_button = get_theme_mod('busicare_blog_button_title','Read More'); if ( empty( $blog_button ) ){ return; } if (is_rtl()) { echo ''.esc_html( $blog_button ).''; } else{ echo ''.esc_html( $blog_button ).''; } endif; } endif; function busicare_get_author_name( $post ){ $user_id = $post->post_author; if( empty( $user_id ) ){ return; } $user_info = get_userdata( $user_id ); echo esc_html( $user_info->display_name ); } function busicare_footer_section_hook() { ?>