use advanced-custom-fields In wordpress In custom fields i put external link
How i can get Only the domain name from the link and use it as name of the link
Like this : name of the domain?
<a href="https://stackoverflow.com">name of the domain?</a>
this my code for show the the link in the post
<div class="btn-group" style="width:100%">
<?php if( have_rows('links') ): ?>
<br/>
<?php while ( have_rows('links') ) : the_row(); ?>
<a href="<?php the_sub_field('linkurl'); ?>" target="_blank">
name of the domain?
<button style="width:33%"></button>
</a>
<?php endwhile; ?>
<?php endif; ?>
</div>