• Resolved wbwired

    (@wbwired)


    Hi

    I have the plugin set up on a page because I want to show it from a menu ‘Most Read’
    But I can’t understand how to make the shortcode show images – I see the parameters for php but how do they translate to a shortcode?

    Also can I remove the number of times viewed from the post list?

    Thanks

    Pat

    https://wordpress.org/plugins/wordpress-popular-posts/

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

    (@hcabrera)

    Hi Pat!

    The [wpp] shortcode uses the exact same parameters as the wpp_get_mostpopular() template tag. Of course, the way you pass the parameters is a bit different.

    For example:

    [wpp thumbnail_width=70 thumbnail_height=70]

    … will list the most popular posts from the past 24 hours with 70×70 thumbnails.

    Also can I remove the number of times viewed from the post list?

    Yep, use the stats_views parameter:

    [wpp stats_view=0 thumbnail_width=70 thumbnail_height=70]

    … where 0 hides it, and 1 displays it.

    Thread Starter wbwired

    (@wbwired)

    Hector

    Just a note to say thank you very much that’s perfect

    I’ve got it now looks great

    Best wishes

    Pat

    Plugin Author Hector Cabrera

    (@hcabrera)

    Don’t mention it. Enjoy the plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode and thumbnails’ is closed to new replies.