• Resolved niklaslazinbee

    (@niklaslazinbee)


    I get an error message when I try to save this shortcode

    [ajax_load_more id=”publications” category=”publikation” transition_container=”false” filters=”true” target=”publications_filter” filters_url=”false” filters_paging=”false” filters_analytics=”false” filters_debug=”true” post_type=”post” posts_per_page=”3″]

    the message is: Updating failed. The response is not a valid JSON response.

    When I specify posts_per_page=”5″ the message does not appear

    When I specify filters=”true” then transition_container=”false” does not work

    I use ALM 5.5.5 and ALM Filters 1.13.0.4

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    @niklaslazinbee I’m not sure, i’ve never seen this issue before.

    Question: is there an issue with your quotes in the shortcode or was this just a copy/paste issue? Notice the different quote after the posts_per_page

    [ajax_load_more id=”publications” category=”publikation” transition_container=”false” filters=”true” target=”publications_filter” filters_url=”false” filters_paging=”false” filters_analytics=”false” filters_debug=”true” post_type=”post” posts_per_page=”3″]
    Thread Starter niklaslazinbee

    (@niklaslazinbee)

    Thanks for the answer.
    The quotes are correct. It is strange, when I specify filters=”false” I can also specify posts_per_page=”3″.
    my shortcode for the filter looks like this

    [ajax_load_more_filters id=”publications_filter” target=”publications”]

    Plugin Author Darren Cooney

    (@dcooney)

    Unfortunately I can’t really debug the shortcodes as they look fine and wouldn’t cause an WP editor issue.

    Don’t believe I’ve seen this issue in 6+ years of the plugin so It’s likely a theme or plugin conflict.

    I’d likely need access to WP debug this, if you’d like that you can open a support ticket here -> https://connekthq.com/support/?product=Ajax%20Load%20More

    Thread Starter niklaslazinbee

    (@niklaslazinbee)

    I have found the error, it was due to a special function in my functions.php, a strange connection.


    But there is still the problem that the option transition_container=”false” does not work with filters=”true”. transition_container=”false” only works with filters=”false”.

    This problem occurs regardless of my settings

    Plugin Author Darren Cooney

    (@dcooney)

    @niklaslazinbee Nice find,

    Yes, currently that setting will not be disabled with Filters set to true. It’s required for the pagination URLs.

    Hoping to put a fix in for this soonish

    Thread Starter niklaslazinbee

    (@niklaslazinbee)

    If anyone is looking for a temporary solution for conflict transition_container and filters, here is a javascript (jQuery)

    window.almComplete = function(alm){
    
    	$('.alm-listing .alm-reveal .alm-item').appendTo('.alm-listing');
    	$('.alm-listing .alm-reveal').remove();
    };
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode conflict withs filters’ is closed to new replies.