Forums

[resolved] [Plugin: WordPress Popular Posts not displaying excerpt-active = true] (3 posts)

  1. ajithperuva
    Member
    Posted 1 year ago #

    Hi,

    I don't have a WP sidebar in my theme and do not want to use one. So I'm using WordPress Popular Posts in my header part as scoller using jquery- here is the line of code I have in header:

    <?php if (function_exists('wpp_get_mostpopular'))
    wpp_get_mostpopular("range=daily&order_by=views&post-excerpt-active=true"); ?>

    The posts title shows correctly but it not displaying its excerpt(description) on scroller

    Why is this? and can anyone help?

    Thank a lot,

    Ajith

  2. Héctor Cabrera
    Member
    Posted 1 year ago #

    Hi there,

    The post-excerpt-active parameter you're trying to use doesn't exist, mate. You need to use the excerpt_length parameter and set it to something different to zero for it to activate, for example:

    <?php
    if (function_exists('wpp_get_mostpopular'))
    wpp_get_mostpopular("range=daily&order_by=views&excerpt_length=55");
    ?>

    That should do the trick.

  3. ajithperuva
    Member
    Posted 1 year ago #

    @Ikki24 Thank you so much...

Topic Closed

This topic has been closed to new replies.

About this Topic