• Resolved Matt

    (@syntax53)


    I’m using this plugin to put mla_gallery shortcode in a widget. The shortcode is designed to show a random image from some nested attachment categories. I had to use an ajax widget plugin/method in order to prevent page caching of a single image.

    The plugin works by putting the raw contents of the widget text (base64_encoded) into data attribute on a DIV, then uses jquery/ajax to pass that content back in and display it. The do_shortcode is done after it is passed back through.

    It worked before the update so I assume you are doing some detection of the plugin needing to be loaded or not or delayed loading of some sort.

    https://www.ads-software.com/plugins/media-library-assistant/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and for the link to the No Cache AJAX Widgets plugin you are using.

    You are right, the latest MLA version has been changed to load a smaller set of code files in the “DOING_AJAX” mode, and shortcode support is not included.

    I have uploaded a new MLA Development Version dated 20151208 that contains a fix for the issue you reported. To get the Development Version:

    1. Go to the Media Library Assistant Developers tab in the Repository.
    2. Scroll down to the “Other Versions” section and click “Development Version”.
    3. Download the ZIP archive to your computer, somewhere you can find it.
    4. Login to your site’s Admin area and navigate to Plugins/Installed Plugins.
    5. Find Media Library Assistant and deactivate it.
    6. Find Media Library Assistant and delete it. You will not lose any settings.
    7. Go to Plugins/Add New.
    8. Click “Upload Plugin”, to the right of the Add Plugins title.
    9. “Browse…” to the location of the ZIP Archive and click on it.
    10. Click “Install Now”, to the right of “Browse…”
    11. When the install completes, click “Activate Plugin” at the bottom of the screen.
    12. When the activation completes, scroll down to “Media Library Assistant” and look for a date like “20151208” at the start of the Description. That’s how you know you have a Development Version. You can also go to the Settings/Media Library Assistant submenu and see the datestamp in the heading.

    That’s it. I don’t change the version number of the Development Version, so you will be notified when the next official version comes out and the normal update process will continue to work.

    Let me know how the Development Version works for you.

    Thread Starter Matt

    (@syntax53)

    Yup works with the dev version. Thanks

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update confirming that the Development Version resolved the issue. I have released MLA version 2.22, which also contains the fix and makes it official.

    Worded Great David, thanks.

    david, the dev version solves the problem. thanks a lot
    Do we have to keep using the dev version in the future?

    Plugin Author David Lingren

    (@dglingren)

    @windbrave – Thanks for posting your results and for the question.

    The Development Version(s) retain the version number of the current released version, e.g., v2.22 at the moment. They are distinguished by a date in the plugin description and on the headers in the Settings/Media library Assistant submenu.

    When I release the next “official” MLA version, the number changes and you will be prompted to update your copy, as usual. You don’t have to do anything special to go from whatever Development Version you have to the next MLA release; they contain all the Development Version fixes and additions I have made between releases.

    I hope that’s clear and answers your question. Thanks for your interest in the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode not working in (special) widget’ is closed to new replies.