Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if( $excerpt ) {
- if ($post->post_excerpt!=NULL){
- if(substr($post->post_excerpt, 0, 3) != '<p>' && substr($post->post_excerpt, 0, 3) != '<p '){
- echo '<p>';
- }
- echo $post->post_excerpt;
- if(substr($post->post_excerpt, -4) != '</p>'){
- echo '</p>';
- }
- }else
- the_excerpt();
- } ?>
Add Comment
Please, Sign In to add comment