• Hi! ??

    I am trying to use a ticker in page with infinite scroll — which means that the ticker will be loaded multiple times. The same one.

    Knowing about the “unique_id”, I tried the following:

    $numerandom = rand() . "\n";
    	$id_unico = array( 'unique_id' => $numerandom, );
    
        if (function_exists('ditty_news_ticker'))
        { ditty_news_ticker( 1525, '', $id_unico ); } <code></code>

    It doesn’t work. The first ticker loads normally, but the following ones, don’t.

    I even tried this:

    $numerandom = rand() . "\n";
    echo do_shortcode('[ditty_news_ticker id="1525" unique_id="'.$numerandom.'"]');

    Again, the first one works. The following ones, for some reason, are echoed (like “do_shortcode” was not there).

    Any help or idea? Thank you. ??

    https://www.ads-software.com/plugins/ditty-news-ticker/

Viewing 1 replies (of 1 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    I believe the main issue here is that the javascript for tickers only gets loaded on page load. So, even if you are setting unique_id’s for each ticker, the javascript is never triggered for those particular tickers since they are being load via ajax (I’m assuming).

    I do have plans to rework how the tickers are setup/loaded to resolve ajax loading issues but I can’t say when I’ll actually be working on that update.

Viewing 1 replies (of 1 total)
  • The topic ‘Infinite scroll and "multiple" tickers’ is closed to new replies.