Multiple link call to action button

DarthTrader

Newbie
Joined
Jun 23, 2012
Messages
5
Reaction score
0
Hi I am trying to code a call to action button that will link to different urls based on a dyanamic php parameter. I am currently using cookie monster on wordpress to maintain the variables in the outbound link on the button. I want to be able to send to link the button to different urls based on the dynamic value in the page url for example:

Page url: http:"//"mypage.xxx"?"offer_id=1

All in one call to action button I want it to do something like this:

If $offer_id=1
"<"a" href"="http:"//"one"."xxx"?"offer_id"="1">Click Here</a>
If $offer_id=2
"<"a" href"="http:"//"two"."xxx"?"offer_id"="2">Click Here</a>
If $offer_id"="3
"<"a" href"="http:"//"three"."xxx"?"offer_id"="3">Click Here</a>




I have very little knowledge of web coding but basically I would only want one link to click on to show up based on which offer_id variable its is. Anyone know if there is a wordpress plugin for this or how I might code it.

Thanks
 
Back
Top