• Resolved _fabio

    (@fibiuz)


    Hello Hector,

    Great plugin.
    I really appreciate it.

    I truly love the possibility to customize the output by using the wpp_get_mostpopular function.

    One thing is missing.
    The possibility to output the feature image.
    (My theme has the function add_theme_support( 'post-thumbnails' ))

    How can I do that?

    Thanks

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter _fabio

    (@fibiuz)

    I figured out….
    I solved it by putting a php function which return the feature image.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    WPP has the ability to create thumbnails using featured images, actually 🙂

    However, for it to work with the wpp_get_mostpopular() template tag you also need to define the width and height of the thumbnails, otherwise WPP won’t display it.

    Here’s an example:

    <?php
    if ( function_exists("wpp_get_mostpopular") ) {
        wpp_get_mostpopular( 'thumbnail_width=75&thumbnail_height=75&post_html="<li>{thumb} {title} {stats}</li>"' );
    }
    ?>
    Thread Starter _fabio

    (@fibiuz)

    Hi Hector,

    I forgot to mention that I had tried to set the thumbnail width and height (there was on the documentation) but it didn’t work anyway.

    Thank you for the reply.
    You’re a very good developer!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display feature image’ is closed to new replies.