Hi @cyphog,
Yeah there’s a bit of an oversight on my part with the shortcode that explains why it’s not rendering (and it’s not something I can fix without affecting every [wpp] shortcode in use out there ha):
- It won’t render if you haven’t set the excerpt length (this one is a minor issue and I’m OK with it, and it doesn’t apply to your case since you did set the excerpt length), and
- The default HTML code explicitly omits the excerpt (this is the one that’s hard to patch up).
So, to have it show please change your shortcode to this:
[wpp post_type="post" limit="5" range="last30days" stats_views=0 order_by='views' excerpt_length=25 excerpt_format=1 thumbnail_width=64 thumbnail_height=64 stats_date=1 post_html="<li>{thumb} {title} <span class="wpp-meta post-stats">{stats}</span><div class="wpp-excerpt">{excerpt}</div></li>"]
Thread Starter
cyphog
(@cyphog)
Thanks, @hcabrera!!
This is working except for the excerpt looking to be counting chars instead of words even though “excerpt_format=1” is set.
excerp_format
tells the shortcode to preserve formatting HTML tags (eg. <em>
, <strong>
, etc.) What you want is excerpt_by_words
instead. See Parameters for more details.
[wpp post_type="post" limit="5" range="last30days" stats_views=0 order_by='views' excerpt_length=25 excerpt_format=1 excerpt_by_words=1 thumbnail_width=64 thumbnail_height=64 stats_date=1 post_html="<li>{thumb} {title} <span class="wpp-meta post-stats">{stats}</span><div class="wpp-excerpt">{excerpt}</div></li>"]
Thread Starter
cyphog
(@cyphog)
Ah, thanks again! Can’t believe I missed that and appreciate the very fast replies! All good now.
Don’t mention it, glad I could help!