display-posts: allow customizing the excerpt (like on .org)
-
Hi
I wanted to use the code I found on https://github.com/billerickson/display-posts-shortcode/wiki#customizing-the-excerpt, but it’s only for wordpress.org
How about adding those possibilities to wordpress.com, too?
Customizing the Excerpt [in wordpress.org]
If you use [display-posts include_excerpt="true"] it will use the standard excerpt settings as defined by WordPress and your theme. Typically this means 55 word length and […] at the end if the excerpt was shortened, but your theme can change these.
- excerpt_length – Set the length of the excerpt, in words. Default is 55
- excerpt_more – Add some type of “more” text to the end of all excerpts. Default is empty
- excerpt_more_link – Make the “more” text link to your post. Default is false (no link)
Example:
[display-posts include_excerpt="true" excerpt_length="20" excerpt_more="Read More" excerpt_more_link="true"]
- The topic ‘display-posts: allow customizing the excerpt (like on .org)’ is closed to new replies.