WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
[resolved] [Plugin: WordPress Popular Posts] no thumbnails if not using widget (3 posts)

  1. gxt
    Member
    Posted 2 years ago #

    Hi,
    I just started using your plugin in a website I'm building and I have a problem...

    The theme I'm making

    isn’t widget-aware, meaning that it has no sidebars that you are able to change.

    so when I use
    <?php get_mostpopular("range=weekly&limit=7"); ?> the plugin shows only text and NO images (the feat image is active in functions.php).
    Is this the problem and if YES how I can fix it?

    Thanks a lot for your work and the support :)

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 2 years ago #

    Hi gtx,

    To enable thumbnails, you need to specify width and height using the parameters thumbnail_width and thumbnail_height. For example:

    <?php if (function_exists('get_mostpopular')) get_mostpopular("range=weekly&limit=7&thumbnail_width=50&thumbnail_height=50"); ?>

  3. gxt
    Member
    Posted 2 years ago #

    thank you very much Héctor! You're a good guy! Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic