Title: Isolating URL
Last modified: August 24, 2016

---

# Isolating URL

 *  [Patient17](https://wordpress.org/support/users/patient17/)
 * (@patient17)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/isolating-url/)
 * I am trying to use the random_webcomic_link for a random button,
    but I only 
   want the URL of that, not the automated echo’s `<a>` link.
 * I tried regex and substr but it doesn’t work together with killing the outputstream
   it just keeps adding its own link.
 * Is there a function or different way I can generate a random_webcomic_link
    with
   just the URL?
 * [https://wordpress.org/plugins/webcomic/](https://wordpress.org/plugins/webcomic/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mike](https://wordpress.org/support/users/mgsisk/)
 * (@mgsisk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/isolating-url/#post-6004604)
 * There are two ways to do this:
    1. You can use the [`WebcomicTag::get_relative_webcomic_link()`](https://github.com/mgsisk/webcomic/blob/master/-/php/tags.php#L800)
       function, or
    2. you can use a parameterized URL, like [`http://example.com?random_webcomic`](https://github.com/mgsisk/webcomic/wiki/Odds-and-Ends)

Viewing 1 replies (of 1 total)

The topic ‘Isolating URL’ is closed to new replies.

 * ![](https://ps.w.org/webcomic/assets/icon.svg?rev=1810569)
 * [Webcomic](https://wordpress.org/plugins/webcomic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webcomic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webcomic/)
 * [Active Topics](https://wordpress.org/support/plugin/webcomic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webcomic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webcomic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mike](https://wordpress.org/support/users/mgsisk/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/isolating-url/#post-6004604)
 * Status: not resolved