I'm trying to replace the_content() in the loop with something like this:
If the _excerpt() is empty, show the_content()
else show the_excerpt()
Can you translate this for me in PHP language?
Thank you!
Tonyz
I'm trying to replace the_content() in the loop with something like this:
If the _excerpt() is empty, show the_content()
else show the_excerpt()
Can you translate this for me in PHP language?
Thank you!
Tonyz
<?php
if(!$post->post_excerpt) {
the_content();
} else {
the_excerpt();
}
?>
thanks
Thanxs... That's what I wanted.!!!!!!!!!!!!
This topic has been closed to new replies.