Title: Create shortcode without closing brackets
Last modified: April 28, 2019

---

# Create shortcode without closing brackets

 *  [wpmhweb](https://wordpress.org/support/users/wppit/)
 * (@wppit)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-without-closing-brackets/)
 * How can I create a shortcode with multiple variables doesn’t have a closing bracket?
   
   For example, how to do I create a shortcode that looks like this: `[wporg title
   ="product" link="link" image="img-link" /]` Instead of this: `[wporg title="product"
   link="link" image="img-link"]Having fun with WordPress shortcodes.[/wporg]`

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-without-closing-brackets/#post-11475956)
 * Your example is a valid form as-is. See [https://developer.wordpress.org/plugins/shortcodes/basic-shortcodes/](https://developer.wordpress.org/plugins/shortcodes/basic-shortcodes/)
 * With that form, you cannot make use of content like “Having fun with WordPress
   shortcodes.” in your example. If you have no such need, use the basic form.

Viewing 1 replies (of 1 total)

The topic ‘Create shortcode without closing brackets’ is closed to new replies.

## Tags

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

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/create-shortcode-without-closing-brackets/#post-11475956)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
