Title: Hard without widget
Last modified: March 30, 2025

---

# Hard without widget

 *  Resolved [istok](https://wordpress.org/support/users/istok/)
 * (@istok)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/)
 * I have now shortcode:
   [wpp post_type=’post’ limit=5 range=’daily’ order_by=’views’
 * But ask me how to avoid views count
   I also would like to have thumbnails
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhard-without-widget%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18390790)
 * Hey [@istok](https://wordpress.org/support/users/istok/),
 * The WordPress Popular Posts plugin provides the following ways to insert a popular
   posts list on your site:
    1. [The [wpp] shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages#the-wpp-shortcode),
       as you already know.
    2. [The WordPress popular Posts block](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages#the-wordpress-popular-posts-block),
       which in essence works exactly like a widget.
    3. [The wpp_get_mostpopular() template tag](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular).
    4. If you’re using [Elementor](https://wordpress.org/plugins/elementor/) on your
       site you can use the [WordPress Popular Posts widget for Elementor](https://cabrerahector.com/wordpress/wordpress-popular-posts-7-3-experimental-elementor-support/).
 * If you can use [blocks](https://wordpress.org/documentation/article/blocks-list/)
   on your site I recommend using the second option, the WordPress Popular Posts
   block, as it’s way easier to use than the shortcode.
 * To answer your questions, you can use the **stats_views** parameter with a value
   of **0** to remove the views count from your list. For example:
 *     ```wp-block-code
       [wpp post_type="post" limit=5 range="daily" order_by="views" stats_views=0]
       ```
   
 * And to display thumbnails you need to provide the desired width and height of
   the thumbnails via **thumbnail_width** and **thumbnail_height**. For example,
   let’s say that you want thumbnails that are 100 pixels wide and 100 pixels tall:
 *     ```wp-block-code
       [wpp post_type="post" limit=5 range="daily" order_by="views" stats_views=0 thumbnail_width=100 thumbnail_height=100]
       ```
   
 * For more details please see the [Parameters](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#parameters)
   documentation page.
 * If you have any other comments / questions please let me know.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18390791)
 * By the way, when I first checked your website I got automatically redirected 
   to this URL:
 *     ```wp-block-code
       https://www.effectiveratecpm.com/hrx2j0rb?key=80ad3c0bf9a8a2c0d64078170d885c2f
       ```
   
 * I don’t know whether that’s normal or not for you (seeing that that domain was
   created on February this year makes me think that you may have some malware on
   your site) but thought I should let you know [@istok](https://wordpress.org/support/users/istok/)
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18390794)
 * As a matter of fact, Sucuri (a well-known anti-malware service) seems to agree
   that your site is infected with malware too: [https://sitecheck.sucuri.net/results/https/rainbowsongs.org](https://sitecheck.sucuri.net/results/https/rainbowsongs.org)
 * [[
 * You should look into this as soon as possible [@istok](https://wordpress.org/support/users/istok/)
 *  Thread Starter [istok](https://wordpress.org/support/users/istok/)
 * (@istok)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18391145)
 * I know unfortunately site is infected an I am desperately looking for cause with
   scanners
 * Thanks for code
 * P.S.
 * This service recommended is to expensive for me
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18391601)
 * > Thanks for code
 * Don’t mention it, glad I could help!
 * > I know unfortunately site is infected an I am desperately looking for cause
   > with scanners
 * Try following the instructions from this FAQ from the official documentation:
   [FAQ My site was hacked](https://wordpress.org/documentation/article/faq-my-site-was-hacked/).
 * I highly recommend getting in touch with the people who built / manage your website
   though, or at least consider hiring someone to help you out with all this.
 * > This service recommended is to expensive for me
 * I wasn’t recommending that service per se, I just shared what their online malware
   scanner reported.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hard without widget’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [1 year, 2 months ago](https://wordpress.org/support/topic/hard-without-widget/#post-18391601)
 * Status: resolved