• Works perfect out of the box, just add a widget + as many good customisation options. The admin stats page is a great bonus.

    One caveat – doesn’t work in SiteOrigin Pagebuilder (you add the widget, but it doesn’t load anything). I tested it with the sidebar and widget and without, but it only seems to work in the sidebar, not page content section.

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

    (@hcabrera)

    Thank you, I’m glad you like WPP ??

    Regarding SiteOrigin Pagebuilder, I’ll look into it as soon as I can.

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hey @lukascech,

    Took some time but I finally managed to test SO’s Page Builder.

    Indeed, the WPP widget won’t load but only when ajaxified (Settings > WordPress Popular Posts > Tools > Ajaxify widget). Disabling the Ajaxify widget option will have WPP render correctly when used with SiteOrigin’s Page Builder.

    Somehow, during the process both the $widget_id and the instance ID ($id) of the WPP widget -assigned by WordPress- get changed:

    1. WPP’s widget ID is changed from wpp-[ID] (eg. wpp-2) to widget-[grid index][cell index][widget index] (eg. widget-0-0-1),
    2. WPP’s instance ID changes from [ID] (eg. 2) to [post ID][some number I don’t know where it comes from][grid index][cell index][widget index] (eg. 9351001). I suspect it’s because of what happens in #1 but didn’t dig into SO Page Builder’s code too deep though so I’m not sure.

    So:

    • When WPP’s done executing its AJAX script it tries to find a container with ID widget-0-0-1 to inject the response, and since it doesn’t exist the script fails to do so (the response will be empty anyways, see below why).
    • When WPP receives the AJAX request, it tries to find the widget instance #9351001 (instead of 2 in our example above), and since it doesn’t exist the widget returns nothing.

    I’m not sure if this is something that can be fixed from WPP’s side but I’ll look into it. Maybe @gpriday can help understand why this happens and provide suggestions?

    For now, the only way the WPP widget can function normally when inserted via SO Page Builder -as stated before- is by disabling the Ajaxify widget feature.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quick and easy + great stats page’ is closed to new replies.