Title: Send a shortcode to URL?
Last modified: August 20, 2016

---

# Send a shortcode to URL?

 *  [thewpman](https://wordpress.org/support/users/thewpman/)
 * (@thewpman)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/send-a-shortcode-to-url/)
 * Let’s say I have the `[abc]testing[/abs]`, _testing_ being defined in the content
   editor
 * How can I send it to the URL of my WP site? I’d like to have it like **\*domain.
   com/?p=1&testing**
 * I thought that it would be easier to pass the value to $variable by:
 * `$variable = do_shortcode('[abc]testing[/abc]');`
 * but it doesn’t work. I try to `<?php echo $variable ?>` it gives me nothing.

The topic ‘Send a shortcode to URL?’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [thewpman](https://wordpress.org/support/users/thewpman/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/send-a-shortcode-to-url/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
