Support » Plugin: WordPress Popular Posts » Show full text length of the most viewed post of the week

  • Resolved elisac.


    I wonder if there is a way to show full text length of the most viewed post of the week. I placed the shortcode in a dedicated page, and instead of excerpt I like to display the full text of the most viewed post of the last 7 days.
    This is the shortcode where I would like to add the “full text” settings:
    [wpp range=”last7days” limit=1 title_by_words=0 stats_views=0 order_by=”views”]
    The website is under construction.
    Thank you in advance for any advice,

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

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


    Hi @elisacerruti,

    Unfortunately the shortcode -as you may have already noticed- doesn’t provide such a feature. You’d need some custom coding work for this.

    Here’s how I would do it:

    1. I’d register a new Content Tag to retrieve the post content (eg. {the_content}).

    2. Then I’d pass said Content Tag ({the_content} from our example above) to the shortcode via the post_html parameter (see Settings > WordPress Popular Posts > Parameters for more details, should be near the end of the page.)

    This would allow the shortcode to render the post content of your top popular post.

    Thread Starter elisac.


    Hi @hcabrera,
    Thank you so much for you super prompt reply.
    That would be great.
    Am I supposed to do anything in order you can proceed?

    Plugin Author Hector Cabrera


    No, I was just making a suggestion of how I would go about it if I was you 😛

    If you’re not familiar with coding in general then of course what I said above won’t make a lot of sense hahaha. In that case, I’d recommend reaching out to the people who’s developing your website and ask them to look into this for you.

    Thread Starter elisac.


    Got it now. 😂
    Great, I will follow your advice.
    Thank you!

    • This reply was modified 3 years, 5 months ago by elisac..
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show full text length of the most viewed post of the week’ is closed to new replies.