WordPress Popular Posts
[resolved] [Plugin: WordPress Popular Posts] Shortcode for showing only thumbnails? (4 posts)

  1. Bike
    Posted 4 years ago #

    Hi! All seems to be working, thanks for the plugin.
    I use it on a photoblog and for one archive page want to display thumbs only.
    I tried setting title-length to '0',but that did not work. Is there a way to do this usings shortcodes, without changing the plugin code?

    Thanks!, Cheers, Bike

  2. Héctor Cabrera
    Plugin Author

    Posted 4 years ago #

    Yup, it is possible. Use the do_pattern and pattern_form attributes to achieve this. Here's a simple example:

    [wpp range=weekly stats_comments=0 thumbnail_width=30 thumbnail_height=30 thumbnail_selection=usergenerated do_pattern=1 pattern_form={image}]

    This shortcode should display just a thumbnail of each popular post, no stats.

    Play around with that and let me know the results, ok?

  3. Bike
    Posted 4 years ago #

    Thanks Ikki. I'll swear that I had tried that as it seemed to make sense, but I must have mucked up some } or [ :)

    Anyway, it works now, thanks for your fast reply and the plugin,
    Cheers, Bike

  4. Héctor Cabrera
    Plugin Author

    Posted 4 years ago #

    Glad to know that! Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic