• Resolved cyberduck

    (@cyberduck)


    Hi!

    I wonder if its possible to run two tickers on a same page. I try to add two shortcodes but only one ticker seem to work at a time.

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

    (@metaphorcreations)

    Yes, you just need to add an extra “unique_id” attribute to one or both or your shortcodes (or direct functions).

    For example:

    [ditty_news_ticker id="15" unique_id="anythinghere1"]
    [ditty_news_ticker id="15" unique_id="anythinghere2"]

    Or:

    <?php
    $atts = array(
      'unique_id' => 'anythinghere1'
    );
    ditty_news_ticker( 15, 'my-custom-class, your-custom-class', $atts );
    
    $atts = array(
      'unique_id' => 'anythinghere2'
    );
    ditty_news_ticker( 15, 'my-custom-class, your-custom-class', $atts );
    ?>

    https://www.metaphorcreations.com/documentation/ditty-news-ticker/#document-9

Viewing 1 replies (of 1 total)
  • The topic ‘Play more than one ticker on same page’ is closed to new replies.