WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Add random number code to sidebar widget

[Resolved] Add random number code to sidebar widget

  • befree22
    Participant

    @befree22

    Could someone tell me how to add code (shown here) to a sidebar widget in WordPress?

    [code]
    $numbers = range(1, 24);
    shuffle($numbers);
    [/code]

    I want the text in the sidebar widget to say “There are __ people on this site.”

    The Extended Random Number Generator plugin doesn’t work at all. I posted this in the support forum earlier today.

    FYI: The tag [city name] belongs to another plugin.
    FYI: I just downloaded shortcode exec php, tested it but it doesn’t seem to work.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Add random number code to sidebar widget’ is closed to new replies.