• Resolved luggie

    (@luggie)


    Hi all,
    I’d need a custom function that sets a button’s text randomly to one of an array of names, every time it is called/the page is (re)loaded.
    Is there a way to do this?
    Regards
    Lukas

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    The easiest is to use shortcodes within PHP and use the text modifier:

    <?php echo do_shortcode('[maxbutton id=x text=' . $text . ']'); ?>

    • This reply was modified 4 years, 9 months ago by Bas Schuiling.
    Thread Starter luggie

    (@luggie)

    Thanks but I’d need further explanations on where and how to implement this ??

    Plugin Author Bas Schuiling

    (@basszje)

    If you don’t know how to do this within WordPress themes or custom plugin I’d recommend to hire a developer who can do this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Random button text from list’ is closed to new replies.