Title: Adjustable shortcode parameter
Last modified: August 30, 2016

---

# Adjustable shortcode parameter

 *  Resolved [FriendlyHal](https://wordpress.org/support/users/friendlyhal/)
 * (@friendlyhal)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adjustable-shortcode-parameter/)
 * This seems to me like it is going to be really simple but I just can’t seem to
   make it work correctly and after an embarrassing number of hours searching for
   an answer and trying different things I have finally decided to post my issue
   to the masses.
 * I have a shortcode which works as such
    `[shortcode id = '123']` and it works
   just fine like that. But what I would like to be able to do is have the “id” 
   parameter be a random number between “x” and “y” where “x” might be 120 and “
   y” might be 130 for example.
 * Thank you for helping out in advance.

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

 *  Thread Starter [FriendlyHal](https://wordpress.org/support/users/friendlyhal/)
 * (@friendlyhal)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/adjustable-shortcode-parameter/#post-6352922)
 * Is it even possible to do what I am referring to? I kind of thought this would
   be a no-brainer for someone who actually knows what they are doing…
 *  Thread Starter [FriendlyHal](https://wordpress.org/support/users/friendlyhal/)
 * (@friendlyhal)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/adjustable-shortcode-parameter/#post-6353144)
 * Asked again and found some help
 * [link](https://wordpress.org/support/topic/possible-to-randomize-shortcode-parameter?replies=8)

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

The topic ‘Adjustable shortcode parameter’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [FriendlyHal](https://wordpress.org/support/users/friendlyhal/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/adjustable-shortcode-parameter/#post-6353144)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
