• Resolved magnitude

    (@magnitude)


    hi! i’ve managed to output custom ticker text with a shortcode. it contains different linked items, but i would like to know to separate items in the output, in order for ticker to scroll it one by one?
    all i get now is a big textual sausage. let’s say my shortcode output looks something like this: “first second third fourth”. the ticker treats all of it like a single line, and i would like to treat it like a four different items. you know, as if i manually entered different text four times in the plugin administration (clicking on a + sign).
    sorry, i obviously have some trouble explaining the problem (i’m a novice), but i hope you did understand it. thank you in advance …

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    If I’m understanding you correctly, what you want to do is change from Scroll mode to Rotate mode. Rotate mode will just display one item at a time.

    Thread Starter magnitude

    (@magnitude)

    no, not that. and sorry for being unable to describe precisely the matter of the problem. let me try again. my php function returns something like this: “link1 link2 link3 link4 “. then i put the function shortcode in the “ticker text” field on the dashboard. now comes the action:

    when i put the ticker in the scrolling mode, it scrolls all four links together (not one by one), and in a rotate mode, it shows all four links at once, just sitting there (essentially static). as you can see, in this case, there’s a space separator ( ) between the links in the output.

    when i put a break <br> between the links in the output (instead of  ), the scrolling mode shows only the first link (and repeating it, not ever showing the other links), and the rotate mode displays all four links at once, like this:
    link1
    link2
    link3
    link4
    again, static, but this time, in four lines, obviously observing the breaks between.

    my question is: how should i separate the links in my php function, in order for news ticker to treat the links separately, as if i entered four ticker texts manually?

    again, sorry for pestering you – i really hope i’ve explained it correctly this time 🙂

    Plugin Author metaphorcreations

    (@metaphorcreations)

    If I’m understanding your setup correctly, the problem is that you are adding all 4 of your links into a single tick. So, your ticker only has one “item”, not 4. If you want 4 separate items you need to hit the “+” button on the top right of your first tick and create 3 others.

    Then, if you want to dynamically added content with a shortcode, you either need to create 4 separate shortcodes, or add an offset attribute (or something similar) so your shortcode function only returns one of your links and the offset will let you know which one.

    See this screenshot https://imgur.com/a/qTSFCT4

    Thread Starter magnitude

    (@magnitude)

    yeah, something like that. i get it now (’cause i’m a newbie here). thank you for your time and effort …

    Plugin Author metaphorcreations

    (@metaphorcreations)

    No problem. Glad to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘custom text’ is closed to new replies.