Excerpt handling functions for WordPress