Title: Custom URL through shortcode
Last modified: August 30, 2016

---

# Custom URL through shortcode

 *  Resolved [bizready](https://wordpress.org/support/users/bizready/)
 * (@bizready)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/custom-url-through-shortcode/)
 * Can I pass custom URL as parameter to shortcode?
 * ex:
    [wsi-widget title=”Invite your friends” customurl=”…..”]
 * [https://wordpress.org/plugins/wp-social-invitations/](https://wordpress.org/plugins/wp-social-invitations/)

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

 *  Thread Starter [bizready](https://wordpress.org/support/users/bizready/)
 * (@bizready)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/custom-url-through-shortcode/#post-6233384)
 * if not, is there any alternative to send specific URL. I see saw a code snippet
   in the documentation to override the customURL, but I am looking more flexibility
   to pass URL based on where the shortcode is placed.
 *  Plugin Author [Damian](https://wordpress.org/support/users/timersys/)
 * (@timersys)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/custom-url-through-shortcode/#post-6233576)
 * But you want to pass the url where the shortcode is placed? Or a custom url that
   changes depending where the shortcoded is placed?
    Im afraid you can’t pass that
   in the shortcode but IF I understand exactly what you are trying to do , maybe
   we can find a workaround
 *  Thread Starter [bizready](https://wordpress.org/support/users/bizready/)
 * (@bizready)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/custom-url-through-shortcode/#post-6233577)
 * Thanks and think I found the answer. I can use CurrentUrl,which uses the URL 
   of page in which shortcode is placed.

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

The topic ‘Custom URL through shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-social-invitations_afb1c6.svg)
 * [Wordpress Social Invitations - Lite](https://wordpress.org/plugins/wp-social-invitations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-social-invitations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-social-invitations/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-social-invitations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-social-invitations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-social-invitations/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bizready](https://wordpress.org/support/users/bizready/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/custom-url-through-shortcode/#post-6233577)
 * Status: resolved