This post written by Austin

A web designer and avid WordPress guru. Visit my personal blog, and please follow @WPCult on twitter for site updates. You can also follow me personally @TheFrosty.

  • Share/Bookmark

2 responses to “Display the_excerpt only if there is text”

  1. Tim

    Very helpful tip. I love the flexibility of WordPress and this is one more trick to have when working out a custom content display.
    Thanks for posting this!

    Tim

    TimĀ“s last blog post..Disappearing Widgets – A Solution in WordPress 2.7

  2. Andrew

    I’m trying to get this to work only
    $returns = mysql_query($query);
    $result = mysql_fetch_row($returns);
    $post_title = $result[5];
    $post_excerpt = $result[7];

    display 2 titles and not the main decription or article body, any help please?
    Andrew

Shopping Cart

Your theme cart is empty

External Link Preferences

Feedburner & Twitter Stats

Tag Cloud

Top Commentators

  • No commentators.
  • WordPress Premium Themes

    • Agent Theme
    • Black Canvas
    • Busy Bee
    • CelebrityPress
    • Chrome Theme
    • PaperCut
    • Revolution 2
    • WP Realtor