WordPress.org

Ready to get started?Download WordPress

Forums

jQuery Archive List Widget
[resolved] Shortcode works fine in widget area only if widget is also published (4 posts)

  1. oneeyedkingmarketing
    Member
    Posted 1 year ago #

    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: http://wordpress.org/support/topic/shortcode-option-to-exclude-category

    http://wordpress.org/extend/plugins/jquery-archive-list-widget/

  2. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. oneeyedkingmarketing
    Member
    Posted 1 year ago #

    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

  4. Miguel Useche
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.