Infinite scroll and "multiple" tickers
-
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. ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Infinite scroll and "multiple" tickers’ is closed to new replies.