Title: WPP Shortcode
Last modified: May 26, 2022

---

# WPP Shortcode

 *  Resolved [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/)
 * Hi,
 * I’ve decided to use the shortcode version of WPP seeing as according to the WP
   Rocket documentation, shortcodes do not get cached if they use AJAX.
 * I’m now having the same problems as before though, in that what’s showing is 
   a million miles away from what is trending.
 * The shortcode that I’m using (in a text widget) is:
 * `[wpp thumbnail_width=100 thumbnail_height=100 range='last1days' limit=5 stats_views
   =0 order_by='views']`
 * Is this correct or should it read something else?

Viewing 7 replies - 31 through 37 (of 37 total)

[←](https://wordpress.org/support/topic/wpp-shortcode/page/2/?output_format=md) 
[1](https://wordpress.org/support/topic/wpp-shortcode/?output_format=md) [2](https://wordpress.org/support/topic/wpp-shortcode/page/2/?output_format=md)
3

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15686687)
 * Well, this is getting quite off-topic now haha. I’ll help you with this last 
   thing but please keep next inquiries WPP related. All non WordPress Popular Posts
   questions please consider posting them on the [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   forum or on [Stack Overflow](https://stackoverflow.com/questions/tagged/wordpress).
   Here I can only provide support for WordPress Popular Posts related stuff (otherwise
   I’d go crazy answering questions about my plugin _and_ general WordPress stuff,
   and that’s not what this particular forum is for).
 * With that being said, I’d go with the cronjob solution and [this script](https://docs.wp-rocket.me/article/494-how-to-clear-cache-via-cron-job#clear-preload-specific-page).
   And yes, personally I’d create a separate cronjob for this.
 *  Thread Starter [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15686863)
 * Yes, personally I cannot see this working anyway, due to:
 * > When you log in you see the non-cached version of the website (caching plugins
   > as WP Rocket won’t show the cached version of the site to administrators by
   > default, unless you configured it to do otherwise) hence the list looks as 
   > expected;
   >  When you’re logged out (or when a visitor checks your site, like
   > me) they see the cached version of your website which for some reason doesn’t
   > have the CSS rules that convert the list into a grid.
 * That is anyone viewing the website that is not an admin will not see the grid
   effect.
 * However, checking out my theme (Total by WPExplorer) I’ve just found a ‘custom
   actions’ panel, where you can add scripts, shortcodes, hooks and PHP codes that
   might otherwise get stripped out by WordPress.
 * I’ll try the cron-job and script that you suggested to make the WPP grid work
   for logged out users.
 *  Thread Starter [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15686886)
 * Nope – it was as I expected.
 * Logging out loses the grid effect.
 * Some things are not meant to be, I suppose.
 *  Thread Starter [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15686907)
 * Finally, I thought that I’d test your theory that it’s a caching problem, so 
   I turned off WP Rocket.
 * Guess what?
 * The grids all fired up straight away!
 * I’ve sent Rocket Support a message to confirm this 🙂
 *  Thread Starter [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15687133)
 * Please Ignore
 *  Thread Starter [deeveearr](https://wordpress.org/support/users/deeveearr/)
 * (@deeveearr)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15687962)
 * Finally marked as resolved, due to me changing my caching over to Litespeed Cache
   and having flawless WPP grid galleries and sidebar widgets with no hassles.
 * Thanks, [@hcabrera](https://wordpress.org/support/users/hcabrera/)
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15688056)
 * Awesome, glad to know you were able to figure it out [@deeveearr](https://wordpress.org/support/users/deeveearr/)!
   Good job!

Viewing 7 replies - 31 through 37 (of 37 total)

[←](https://wordpress.org/support/topic/wpp-shortcode/page/2/?output_format=md) 
[1](https://wordpress.org/support/topic/wpp-shortcode/?output_format=md) [2](https://wordpress.org/support/topic/wpp-shortcode/page/2/?output_format=md)
3

The topic ‘WPP Shortcode’ 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/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [caching](https://wordpress.org/support/topic-tag/caching/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 37 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/wpp-shortcode/page/3/#post-15688056)
 * Status: resolved