Simple way to check if your WordPress post has an excerpt specified and either show the_excerpt or the_content. !empty($post->post_excerpt) Example: <?php if (!empty($post->post_excerpt)) { ?> <?php the_excerpt(); ?> <?php } else { ?> <?php the_content(’<p>Continue reading</p>’); } ?>
Archive for July, 2008
Does a post have an excerpt specified?
Tags: programming
Posted on Monday, July 28th, 2008 in WordPress | Comments Off
about julia
Web developer by day. Free time spent with my dog, hiking, running, and gardening.
notes
May 20th, 2010: Final numbers are in for our Walk MS 2010 team... $2,745!! Thanks so much to all of our generous donors! Event pics here
February 8th, 2010: I absolutely love my new cookbook: Vegan Yum Yum: Decadent (But Doable) Animal-Free Recipes for Entertaining and Everyday. If you are a vegan or just want to cook with fewer animal products check this book out. For your first recipe try Hurry Up Alfredo. Super fast and easy - and of course, yum yum! @veganyumyum
November 15th, 2009: Completed my first 8 miler yesterday and felt great! The half marathon is starting to look doable - only about 2 months until the big day. :)
