Title: Shortcode stopped working?
Last modified: April 15, 2025

---

# Shortcode stopped working?

 *  Resolved [VFSJason](https://wordpress.org/support/users/vfsjason/)
 * (@vfsjason)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/)
 * Has something changed due to the release of the Elementor widget that would cause
   the [wpp] shortcode method to stop working? Screenshot attached showing a test
   of both on a page and only the widget is displaying the post titles.
 * credentials for the site are: test-site | 13579
 * Apparently the stupid block editor images aren’t displaying. Here’s the links:
   
   [https://postimg.cc/PCTW6mXS](https://postimg.cc/PCTW6mXS)[https://postimg.cc/dh68gLDw](https://postimg.cc/dh68gLDw)
 * ![](https://postimg.cc/dh68gLDw)
 * ![](https://postimg.cc/PCTW6mXS)
    -  This topic was modified 1 year, 1 month ago by [VFSJason](https://wordpress.org/support/users/vfsjason/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-stopped-working-14%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18418574)
 * Hey [@vfsjason](https://wordpress.org/support/users/vfsjason/),
 * I checked your site and it seems that the shortcode is working.
 * [[
 * What am I missing here?
 * P.S.: If a moderator is reading this, the credentials shared above by the OP 
   are just the user/password combo to access a password protected site (.htpasswd
   authentication). They’re not WP credentials.
    -  This reply was modified 1 year, 1 month ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
 *  Thread Starter [VFSJason](https://wordpress.org/support/users/vfsjason/)
 * (@vfsjason)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18418584)
 * The section was blank for literally days up until just now. I’ve messed with 
   various settings so perhaps that’s the cause. 
   Even so, I have it set to show
   5 posts, yet only 1 is in the list. Any idea why that is the case?[https://postimg.cc/zV065wdc](https://postimg.cc/zV065wdc)
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18418629)
 * The shortcode will list **up to** _N_ posts (in your case that’s 5), assuming
   that there’s enough data to list _N_ posts in the first place.
 * From the [Parameters documentation](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#parameters)
   page:
 * > **limit**: Sets the **maximum number** of popular posts to be shown on the 
   > listing
 * Since yours seems to be a site that’s currently being developed and that the 
   only traffic it gets is yours / your team’s I think it’s to be expected that 
   it’ll only show as many posts as you/your team has/have visited within the selected
   time range.
 * For example, I just visited some of your posts and I can see 4 posts on your 
   popular section now.
 * [[
 *  Thread Starter [VFSJason](https://wordpress.org/support/users/vfsjason/)
 * (@vfsjason)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18420050)
 * True, this is a dev site, but was a duplication of the production site, which
   had WPP installed and posts dating back many years. There’s a several year gap
   between old posts and new posts, well, there’s nothing new, actually, so I set
   the Custom Time Range to 1500 days and it shows the 900+ views on the 5 Most 
   Viewed posts.
 * [https://postimg.cc/s1YzvL6v](https://postimg.cc/s1YzvL6v)
 * This was the custom date range I set a couple weeks ago and they were showing
   on the front-end via the shortcode. Then the list disappeared, I disabled the
   Data Caching and disabled loading via AJAX, to see if that helped and nothing
   changed up until the point I created this thread.
 * I suppose this question has morphed into new questions of:
    1. Is the custom date range too large?
    2. Is there a delay between setting the range of the Stats and when it actually
       updates on the front-end? Because even at the 30d range, the top 5 have 9, 4,
       3, 3, 3 views and the front-end lists 1 view for each.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18420087)
 * > Is the custom date range too large?
 * I don’t see why it would be so nope. As long as the server can handle it (it 
   looks like it should from your Stats page screenshot.)
 * > Is there a delay between setting the range of the Stats and when it actually
   > updates on the front-end? Because even at the 30d range, the top 5 have 9, 
   > 4, 3, 3, 3 views and the front-end lists 1 view for each.
 * The question you should be asking yourself right now is this: _is the configuration
   I’m using with the shortcode _(which you haven’t shared yet, btw)_ the same vs
   the Stats screen?_ (As in: time range, category/taxonomy filters, post type(s),
   etc.) Because if they’re not the same then obviously there will be a discrepancy.
 * … unless you’re literally using **[wpp]** as is, with no parameters at all? If
   so then know that when no parameters are present then the shortcode will default
   to listing the most viewed posts from the last 24 hours (as stated in the [documentation](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages#the-wpp-shortcode)).
 * And no, there’s no delay 😛 If Data Caching is disabled the data will be pulled
   live from the DB, same as the Stats screen.
 *  Thread Starter [VFSJason](https://wordpress.org/support/users/vfsjason/)
 * (@vfsjason)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18420757)
 * Oh… that’s neat. Yes, was using the default [wpp] shortcode. My designer, nor
   I, came across that Github page with the available parameters. That definitely
   helps! 
   Thank you!

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

The topic ‘Shortcode stopped working?’ 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

 * [no data](https://wordpress.org/support/topic-tag/no-data/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 6 replies
 * 2 participants
 * Last reply from: [VFSJason](https://wordpress.org/support/users/vfsjason/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/shortcode-stopped-working-14/#post-18420757)
 * Status: resolved