Hello,
is it possible to have a custom link fields?
A field that allows to put a link to another site and clickable on a cpt/post/page/… or with shortcode
Also, I’d like to add to this link an affiliation (link) with Tradedoubler or Amazon or Kelkoo or whatever. So link_kelkoo + link_site.com.
How to do this?
example:
-> Select your affiliation : Checkbox/list-box/an other
-> Put here the url: http://site.com
-> Put here the text to display with the link: My link to site.com
Thanks
You would need to build this functionality yourself.
Using the three fields you mentioned in your post you would create the HTML and link, I’m not exactly sure what you need to output from your explanation but something like
<a href="<?php the_field('affiliate'); ?>?var=<?php the_field('link'); ?>"><?php the_field('link_text'); ?></a>
I’m sure there would be more to it than that but the exact details would depend on exactly what you need to output.