• Resolved lieska

    (@lieska)


    Hi, this is a great plugin, but for some reason I just can’t get the shortcode show anything but “Sorry. No data so far.” No cache plugin at the moment and I’ve tried different settings in Tools/Data. In example page the non-working shortcode is in content area and working widget in sidebar. I added also the shortcode to the sidebar, it’s not working there either.

    The shortcode is default example (I’ve tried different settings, no help)
    [wpp range=”last1days” limit=5 stats_views=1 order_by=”views”]

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @lieska,

    last1days is not a valid value for the range parameter (see Settings > WordPress Popular Posts > Parameters for more details.)

    If you want to show the most viewed posts from the last 24 hours, try this instead:

    [wpp range='last24hours' limit=5 stats_views=1 order_by='views']

    Thread Starter lieska

    (@lieska)

    Hi Héctor, yeah ok, that was just one of my tests. Anyway any value there doesn’t work.

    Now I have in sidebar shortcode [wpp range=’last24hours’ limit=5 stats_views=1 order_by=’views’]
    Same result.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Try pasting that shortcode into an actual WP page and see if the issue persists or not. If it works on a page but not on the widget then the widget is what’s causing the problem.

    Thread Starter lieska

    (@lieska)

    It is in the home page also where there is no sidebar, not working there either. (It’s under TOP30 heading.)

    Plugin Author Hector Cabrera

    (@hcabrera)

    How odd. Is the widget also configured to show the top viewed posts from the last 24 hours? Also, which editor are you using on your site?

    Thread Starter lieska

    (@lieska)

    Yes, now it is. But as I told, I’ve tried different settings, shortcode doesn’t work, widget does. I have Astra theme with Gutenberg editor.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Alright, I’ve tested the shortcode with Gutenberg before and as far as I know it worked normally but I’ll give it another test as soon as I can and post back my results here.

    • This reply was modified 6 years, 2 months ago by Hector Cabrera. Reason: Fixed typo
    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @lieska,

    So I tried adding the WPP shortcode to a post via the Gutenberg editor and everything worked as expected:

    WPP shortcode in Gutenberg's editor via the shortcode block

    WPP widget settings

    Homepage displaying both the shortcode and the widget as expected

    This was with the Twenty Twenty theme (included by default with WordPress now.)

    Thread Starter lieska

    (@lieska)

    Hi Héctor. I tried the default (same) theme as you, no change. I also disabled all the other plugins, no help. This is really really strange.

    Plugin Author Hector Cabrera

    (@hcabrera)

    No idea then, unfortunately. The problem is likely being caused by something on your side, as shown before I wasn’t able to reproduce it on a clean WP install. You’ll need to figure out what that something is so I may be able to help out.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Marking as resolved due to inactivity.

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

The topic ‘Sidebar widget works, shortcode doesn’t’ is closed to new replies.