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.
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.