Skip to content

Instantly share code, notes, and snippets.

@quangbahoa quangbahoa/wptwords.php
Last active Jan 2, 2016

Embed
What would you like to do?
echo wp_trim_words( get_the_content(), 120 ); // Dành cho content
echo wp_trim_words( get_the_excerpt(), 60 ); // Dành cho excerpt
echo wp_trim_words( get_the_title(), 40 ); // Dành cho title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.