Title: Inserting the random number generator shortcode properly
Last modified: August 21, 2016

---

# Inserting the random number generator shortcode properly

 *  [gnarayan](https://wordpress.org/support/users/gnarayan/)
 * (@gnarayan)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/inserting-the-random-number-generator-shortcode-properly/)
 * Probably easy but I’m failing:
 * I’m using this plugin to say something like “11 people used this information 
   today.”
 * [http://wordpress.org/plugins/random-number-generator-shortcode/installation/](http://wordpress.org/plugins/random-number-generator-shortcode/installation/)
 * But the number renders at the top of the post using shortcode:
    [randomnumgen
   min=” max=” numtogen=”]
 * I obviously want the number to render at a few different places _within _the 
   post…any ideas how to fix this?
 * thank yew!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/inserting-the-random-number-generator-shortcode-properly/#post-4490409)
 * Try asking on [http://wordpress.org/support/plugin/random-number-generator-shortcode](http://wordpress.org/support/plugin/random-number-generator-shortcode)
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/inserting-the-random-number-generator-shortcode-properly/#post-4490536)
 * The plugin is poorly written, short code handlers should not echo content. Content
   should be accumulated into a variable. The variable is then returned from the
   handler function. `do_shortcode()` (which called the handler) will echo out the
   returned value.
 * You should go ahead and hack up a working version to use until the repo version
   can be corrected.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Inserting the random number generator shortcode properly’ is closed to
new replies.

## Tags

 * [random number](https://wordpress.org/support/topic-tag/random-number/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 3 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/inserting-the-random-number-generator-shortcode-properly/#post-4490536)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
