Title: Shortcode Parameters
Last modified: August 24, 2016

---

# Shortcode Parameters

 *  Resolved [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-parameters-2/)
 * Where are they explained? How do you add a parameter to a shortcode? I’m not 
   going to assume anything, that’s why I ask.

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

 *  [Rhys Wynne](https://wordpress.org/support/users/rhyswynne/)
 * (@rhyswynne)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-parameters-2/#post-6037416)
 * Hi mythusmage,
 * A parameter to the shortcode goes inbetween the shortcode word and the closing
   square bracket.
 * So if you have a shortcode called “shortcode”
 * `[shortcode]`
 * And you want to add a parameter x to equal 1, you’d add it here:-
 * `[shortcode x="1"]`
 * For shortcodes that wrap text, you can do the following:-
 * `[shortcode x="1"]Content[/shortcode]`
 * It’d be handy to know what you actually wish to do shortcode wise. Do you have
   an example of what you are trying to do? I’ll aim to help 🙂
 *  [a2ztechnologies](https://wordpress.org/support/users/a2ztechnologies/)
 * (@a2ztechnologies)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-parameters-2/#post-6037417)
 * Its simple
 * Refer this page
 * [https://codex.wordpress.org/Shortcode_API](https://codex.wordpress.org/Shortcode_API)
 *  Thread Starter [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * (@mythusmage)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-parameters-2/#post-6037428)
 * Rhys, Thank you for your assistance. To answer your question, I’m using the show
   post plug in from Weaver themes. The specific shortcode I would like to use is;[
   show post cols=2]. There are others, but that’s one I’d really like to use. Now,
   were I to need to end the columns at some point is closing tag needed.
 * a2z, I looked, it aint there. At least not any where that’s easy to find.

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

The topic ‘Shortcode Parameters’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [mythusmage](https://wordpress.org/support/users/mythusmage/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/shortcode-parameters-2/#post-6037428)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
