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

  1. gxt
    Posted 4 years ago #

    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 :)


  2. Hector Cabrera
    Plugin Author

    Posted 4 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
    Posted 4 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

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

About this Topic