Title: Using slug name for shortcode
Last modified: November 29, 2016

---

# Using slug name for shortcode

 *  [anefarious1](https://wordpress.org/support/users/anefarious1/)
 * (@anefarious1)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/using-slug-name-for-shortcode/)
 * Is it possible to make a shortcode that will insert a post’ s slug name? It would
   be a different slug on each WP post, but I’d like to insert the shortcode on 
   all posts. Would it work? Thanks!

The topic ‘Using slug name for shortcode’ is closed to new replies.

 * ![](https://ps.w.org/shortcode-variables/assets/icon-256x256.png?rev=2402961)
 * [Snippet Shortcodes](https://wordpress.org/plugins/shortcode-variables/)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-variables/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-variables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-variables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-variables/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [anefarious1](https://wordpress.org/support/users/anefarious1/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/using-slug-name-for-shortcode/)
 * Status: not resolved