Home Forums Feature Requests Custom field link type


Custom field link type

  • 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 +
    How to do this?
    -> Select your affiliation : Checkbox/list-box/an other
    -> Put here the url:
    -> Put here the text to display with the link: My link to


  • 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.

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

The topic ‘Custom field link type’ is closed to new replies.