In my new theme, I am using this coded trick to display the excerpt on a single post only if I’ve got text inside. Usually if you use
the_excerpt and you don’t have one, it will fake one for you.
This is not something that I wanted to do on the single post page. So I used the following code to check if the excerpt existed.
if ( !empty( $post->post_excerpt ) ) :
Once this action is taken into account, you can factor in what code you want to out put if the
post_excerpt isn’t empty.
if ( !empty( $post->post_excerpt ) ) : the_excerpt(); else : false; endif;
The above code checks if there is an excerpt and print’s it to the screen. If there isn’t an except, it doesn’t do anything.
Random Search Terms
Ben Dunkle on designing icons for WordPress [video]
I know many people attendedWordCamp 2009, in fact I believe there were 700 plus attendees. Well not every one showed...
Notes from WordCamp San Fransisco
Over view notes of San Francisco WordCamp 2009 by [insert creator]??
Steve Souders, speeding up themes [notes]
Steve Souders, who currently works at Google is here to talk about speeding up your themes. Some overview notes WhySlow...
powered by WassUp
Recent Posts: Fully Net Worth . com
Dr. Nebil Bill Aydin is a Double Board Certified Plastic and Reconstructive Surgeon. His specialization lies in aesthetic cosmetic surgery of the face and body. Aydin is originally from Istanbul, Turkey but had migrated to Los Angeles in the U.S. when he was 16. As of 2019, Bill Aydin net worth is estimated to be […]
Brett Hoffman, who is better known by his online alias as Dakotaz, sometimes referred to as DK, is a Twitch Streamer and a Youtuber. He is an active player of the game Fortnite and today has over 4 million followers on his Twitch channel. As of 2019, Dakotaz Net Worth is estimated to be $2.5 […]
Ben Zobrist is an American professional baseball second baseman and outfielder who currently plays for the Chicago Cubs of Major League Baseball. Early Life Ben was born on May 26, 1981, in Eureka, Illinois to Cynthia and Tom Zobrist. He started playing baseball when he was eight years old. He graduated from Eureka High School […]