function kkthemes_post_content($content) { $output = beans_open_markup('kkthemes_post_content', 'p'); $output .= beans_output('kkthemes_post_content_summary', kkthemes_get_excerpt($content)); $output .= beans_close_markup('kkthemes_post_content', 'p'); $output .= '<p>' . beans_post_more_link() . '</p>'; return $output; }
function tbr_blog_post_content( $content ) { // Stop here if the excerpt is empty. if ( !has_excerpt() ) return $content; // Add the excerpt as lead if it is singular. if ( is_singular('post') ) return '<p class="uk-article-lead">' . get_the_excerpt() . '</p>' . $content; // Replace content with excerpt and more link if not singular. elseif ( is_home() ) return '<p>' . get_the_excerpt() . '</p><p class="uk-margin-bottom-remove">'. beans_post_more_link() . '</p>'; }