scriptygoddess

Archive for July, 2008

24 Jul, 2008

Show full post if there is no excerpt

Posted by: Jennifer In: Bookmarks

As the title said – needed to show the excerpt if there was one, or the *full* post if there wasn't (not the shortened version wordpress "fakes") remove_filter('get_the_excerpt', 'wp_trim_excerpt'); if (get_the_excerpt() == "") { echo apply_filters('the_content',get_the_content()); } else { echo apply_filters('the_content',get_the_excerpt()); echo '<p><a href="'.get_permalink().'">Read more…</a></p>'; } Updated 8/11/08 Made some changes to the code. Excerpts […]


Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements