• Resolved oneeyedkingmarketing

    (@oneeyedkingmarketing)


    I am using a shortcode to display the plugin in the widget area to allow for some additional formatting of the widget. The shortcode performs properly when the plugin’s widget is also part of the widget area.

    If I remove the plugin’s default widget and move it to the “inactive widget” area or the “available widget” area, the shortcode in the text widget stops working properly.

    The year is linked but it is set as a hyperlink to the years full post list, and does not expand when clicked liked when the plugin’s widget is in the widget area.

    I also use the shortcode in a page and it too has stopped displaying properly.

    This error just started happening in the last few days… It used to work properly. This also prompted my question about setting the excluded categories shortcode post: https://www.ads-software.com/support/topic/shortcode-option-to-exclude-category

    https://www.ads-software.com/extend/plugins/jquery-archive-list-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Miguel Useche

    (@skatox)

    Mmm, seems like a bug. I never tested it with shortcode and no widget activated. But i see your point, i’ll need to fix this in next version.

    So what you’re telling me, it’s that when widget is inactive it doesn’t includes the JS code.

    Thread Starter oneeyedkingmarketing

    (@oneeyedkingmarketing)

    Yes, that is correct.

    Do you have a timeline on this? or a suggested hack? I have 2 sites now with inoperable archives because of this change, customers are wanting a solution.

    thanks

    Plugin Author Miguel Useche

    (@skatox)

    No i don’t have a planned time but you can fix it temprary, i’ve tested and it works, just add at filter() function (line 479 of main php file) the following code:

    if (function_exists("wp_enqueue_script")) {
        wp_enqueue_script('jquery_archive_list', $this->pluginUrl, array('jquery'), false, true);
    }

    it will load JS code when using filters and no widget.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode works fine in widget area only if widget is also published’ is closed to new replies.