• Resolved cyphog

    (@cyphog)


    I recently updated the WPP plugin from the one that’s being deprecated and for the life of me cannot get excerpts to display with it even though it’s enabled in the short code and that the excerpts appeared in the older plugin version. Also confirmed that the posts themselves have excerpts. Behavior is happening across all browsers I checked.

    [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]

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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):

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

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Don’t mention it, glad I could help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post Excerpt Not Displaying’ is closed to new replies.