Using wp_trim_excerpt to get the_excerpt() outside the loop

Since WP 3.3.0, wp_trim_words() is helpful if you’re able to get the content that you want to generate an excerpt for. Hope that’s helpful to someone and it saves creating your own word counting function.

http://codex.wordpress.org/Function_Reference/wp_trim_words

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)