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


  • Curt: If anyone comes across this with similar issues I was able to sort out the pagination issues painlessly with easyCommentsPaginate from http://www.mush
  • Christopher: Yeah, it is indeed hard to do. And something remains elusive about why the pagination never worked. I tried everything I could find. Regardless, I
  • Jennifer: Hi Christopher, always hard to bug test stuff like that remotely. Sorry those didn't help. Glad you found a solution though :)

About


Advertisements