Show Full Post in Home
-
Hello,
My site is showing only the summary of the posts on the homepage.
I would like to show completely.I found this code in the functions.php file:
///////////////////////////////////// // Add Content Limit ///////////////////////////////////// if ( !function_exists( 'excerpt' ) ) { function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('<code>\[[^\]]*\]</code>','',$excerpt); return $excerpt; } } if ( !function_exists( 'content' ) ) { function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/\[.+\]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show Full Post in Home’ is closed to new replies.