Create affiliate url for current page
-
Hi, great plugin! Thanks for making it available, I am currently testing it and considering purchasing. However, I am trying to generate an affiliate url for the current page and cannot get it to work:
As far as I can see, there is not shortcode in SliceWP that allows me to automatically generate the affiliate url for the current page, so I created a code snippet I put into a WPCode as follows (which I trigger with a shortcode that I am placing in a test page) – however it’s not working and I cannot figure out what the issue is as I am not a programmer.
If you wouldn’t mind assisting please, that would be very much appreciated, Thanks!
<?php global $wp; $current_url = home_url(add_query_arg(array(), $wp->request)); $referal_link = slicewp_get_affiliate_url( 10 , $current_url ); print($referal_link);
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Create affiliate url for current page’ is closed to new replies.