WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bike
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 years ago #

    Glad to know that! Enjoy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic