Title: How to insert link into code ?
Last modified: June 7, 2020

---

# How to insert link into code ?

 *  Resolved [ferand](https://wordpress.org/support/users/ferand/)
 * (@ferand)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-insert-link-into-code/)
 * Is there a shortcode functionality to use with do_shortcode() ?
    I cannot find
   a way how i can insert affiliate link into code. I tried using <ta> tag but that
   gives no result, of course. It’s probably a filter that runs before post content
   is pasted on page and turns all <ta linkid=”num”> into proper links, but using
   <ta> in custom page template gives output with same <ta> tag.

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

 *  Plugin Author [cartpauj](https://wordpress.org/support/users/cartpauj/)
 * (@cartpauj)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-insert-link-into-code/#post-12955267)
 * `<?php echo do_shortcode('[thirstylink linkid="123"]Affiliate Link[/thirstylink]');?
   >`
 *  Thread Starter [ferand](https://wordpress.org/support/users/ferand/)
 * (@ferand)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-insert-link-into-code/#post-12956241)
 * Thank you i already found a way. I found it on some github account in gist example
   that was doing similar functionality. Then i tried to use default shortcode [
   thirstylink] and it worked.
 * Very sad, i was looking for this information for a really long time, searching
   official website, crawling via google site: ulr feature. I was looking exactly
   for that and didn’t found anything. Documentation should include it.

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

The topic ‘How to insert link into code ?’ is closed to new replies.

 * ![](https://ps.w.org/thirstyaffiliates/assets/icon-256x256.jpg?rev=2686825)
 * [ThirstyAffiliates - Affiliate Links, Link Branding, Link Tracking & Marketing Plugin](https://wordpress.org/plugins/thirstyaffiliates/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thirstyaffiliates/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thirstyaffiliates/)
 * [Active Topics](https://wordpress.org/support/plugin/thirstyaffiliates/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thirstyaffiliates/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thirstyaffiliates/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ferand](https://wordpress.org/support/users/ferand/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/how-to-insert-link-into-code/#post-12956241)
 * Status: resolved