cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

Except doesn't show #259

Closed ymauron closed 4 years ago

ymauron commented 4 years ago

Hi,

On my wpp install, popular post are displayed but not with excerpt, despite the option being activated.

cabrerahector commented 4 years ago

Hi @ymauron,

By default, the [wpp] shortcode doesn't include the excerpt as part of its HTML output (see post_html parameter.)

To have it display the excerpt, use the {summary} Content Tag in conjunction with the post_html parameter, like so for example:

[wpp limit=10 excerpt_by_words=1 excerpt_length=40 excerpt_format=1 range="last30days" stats_views=1 order_by="views" stats_views=0 post_html="<li>{thumb} {title} <div class='wpp-excerpt'>{summary}</div><div class='wpp-meta post-stats'>{stats}</div></li>"]

By the way, you have stats_views twice in there.

ymauron commented 4 years ago

Hi,

Many thanks for that... I would have red the doc properly :)

Have a nice day !