Title: Multiple urls
Last modified: November 14, 2017

---

# Multiple urls

 *  Resolved [Ikvindlezenleuk](https://wordpress.org/support/users/ikvindlezenleuk/)
 * (@ikvindlezenleuk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multiple-urls-5/)
 * Hi, I started using Post Snippets two weeks ago. One of my snippets has two variable
   urls in it. I use this snippet for affiliate links. It worked fine and with every
   book review I could add the urls from online bookstores that I needed. This morning
   I noticed that this snippet isn’t working anymore. It still displays two urls
   but they’re the same, the one from the first url. I’ve tried adding the right
   urls again, but it looks like just one url is being used (and that twice). I 
   tried changing the wrong url in the code displayed in my blog posts but then 
   it displays just two times the replaced url. I logged out of my website but that
   didn’t help. Do you have any idea why using multiple urls isn’t working anymore?
   
   Kind regards, Mathilde
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-urls-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [davdebcom](https://wordpress.org/support/users/davdebcom/)
 * (@davdebcom)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multiple-urls-5/#post-9683417)
 * Can you add screenshot of your settings (for the snippets)?
 *  Thread Starter [Ikvindlezenleuk](https://wordpress.org/support/users/ikvindlezenleuk/)
 * (@ikvindlezenleuk)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multiple-urls-5/#post-9684287)
 * I don’t think I can add a screenshot here, only text.
    Title: tekst_link Variables:
   url,url Snippet: <h4>Koop dit boek</h4>De leukste plek om een boek te kopen is
   in een (kinder)boekwinkel. Als je toch online wilt kopen kun je dat doen via 
   een link hieronder. Dan krijg ik daar een percentage van en ondersteun je mijn
   website. Voor jou blijft de prijs hetzelfde! Alvast bedankt!<br>[Bol.com](https://wordpress.org/support/topic/multiple-urls-5/{url}?output_format=md),
   [Bruna.nl](https://wordpress.org/support/topic/multiple-urls-5/{url}?output_format=md)
 * When I add both the urls, one for Bol.com & one for Bruna (= Awin it looks like
   this in my blog post: [tekst_link url=”[https://partnerprogramma.bol.com/click/click?p=1&t=url&s=16516&f=TXL&url=https%3A%2F%2Fwww.bol.com%2Fnl%2Fp%2Feen-medaille-voor-leroy%2F9200000060603276&name=morpurgo-medailleleroy&#8221](https://partnerprogramma.bol.com/click/click?p=1&t=url&s=16516&f=TXL&url=https%3A%2F%2Fwww.bol.com%2Fnl%2Fp%2Feen-medaille-voor-leroy%2F9200000060603276&name=morpurgo-medailleleroy&#8221);
   url=”[https://partnerprogramma.bol.com/click/click?p=1&t=url&s=16516&f=TXL&url=https%3A%2F%2Fwww.bol.com%2Fnl%2Fp%2Feen-medaille-voor-leroy%2F9200000060603276&name=morpurgo-medailleleroy”%5D](https://partnerprogramma.bol.com/click/click?p=1&t=url&s=16516&f=TXL&url=https%3A%2F%2Fwww.bol.com%2Fnl%2Fp%2Feen-medaille-voor-leroy%2F9200000060603276&name=morpurgo-medailleleroy”%5D)
 * Somehow the second url has been replaces by the first. And the plug in has done
   so with all the blog posts. It doesn’t matter which url I put as the second url.
   There was no problem for the past two weeks.
 * So now I’ve modified this snippet so that it uses only 1 url and made another
   snippet for the second url.
 *  [davdebcom](https://wordpress.org/support/users/davdebcom/)
 * (@davdebcom)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/multiple-urls-5/#post-9701184)
 * That’s probably because you use the same identifier. Can you use url1 and url2
   as variables and also in the shortcode, that works right?
 * There hasn’t been an update to the plugin in a long time, so a change in the 
   plugin is likely not the cause.

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

The topic ‘Multiple urls’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [davdebcom](https://wordpress.org/support/users/davdebcom/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/multiple-urls-5/#post-9701184)
 * Status: resolved