You are here: Home
Support site for Tips and Tricks HQ premium products
I have found a solution to this by using this code <?php if (isset($_GET) && $_GET!=”) { echo $_GET; } else { echo ‘you_default_affiliate_here’; } ?>
WordPress can not handle PHP middle of a link and I therefore use the WP plugin: ‘PHP Code for posts’
The two things solve the whole task perfectly
Sorry I meant shortcode [wp_affiliate_referrer] not [wp_aff_set_affiliate_id]
I have seen this post, and from there I use [wp_aff_set_affiliate_id] to a third part signup e.g companyname.com/[wp_aff_set_affiliate_id]/signup, and it works perfectly as long as you have come to the site via an affiliate link with ‘?a_id =affiliate’ (great feature when I want to use it this way )
But when there are organic traffic to my site [www.mydomain.com/signuphere], and I use [wp_aff_set_affiliate_id] in a link, the code will write ‘None’ e.g. companyname.com/NONE/signup, with the result that the link would not work for a 3 part signup.
So it could be really great if there was a way to get [wp_aff_set_affiliate_id] to catch a ‘default’ affiliate instead of writing ‘None’in some way