Support » Plugin: Advanced Custom Fields: Link Picker Field » Adding Commas to the end of URL

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’ve got the same issue.

    Actually you don’t need the Link Picker Field. You can use the Relational Fields if you want to link to a post, page or taxonomy that exists in your WP Network.

    You can use the Text field if you want to put external link. The output code for displaying the link as a link in your website would be something like:

    <?php if( get_field('your_custom_field_name') ): ?><div class="your_custom_class"><a href="<?php the_field('your_custom_field_name'); ?>" target="_blank">Click Here</a></div>
    <?php endif; ?>
    Plugin Author BIOSTALL


    I think it’s possible you were just doing something like:

    <?php the_field('my_link_field); ?>

    What actually gets returned is an array with the first key being the URL. Sod you’d have to do:

    <?php $my_link_field = get_field('my_link_field); echo $my_link_field[0]; ?>

    Hopefully thats the cause and solves it for other finding this thread.


    I am having similar issues with this.

    I am currently using:

    <a href='<?php the_field(about_button_link); ?>'>Button text here</a>

    I have tried the above but I could not get it to work. Can anyone please help me fix this.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Commas to the end of URL’ is closed to new replies.