Search
 
SCRIPT & CODE EXAMPLE
 

PHP

link acf

<?php 
$link = get_field('link');
if( $link ): 
    $link_url = $link['url'];
    $link_title = $link['title'];
    $link_target = $link['target'] ? $link['target'] : '_self';
    ?>
    <a class="button" href="<?php echo esc_url( $link_url ); ?>" target="<?php echo esc_attr( $link_target ); ?>"><?php echo esc_html( $link_title ); ?></a>
<?php endif; ?>
Comment

PREVIOUS NEXT
Code Example
Php :: use app name in laravel blade 
Php :: get image extension in php 
Php :: how to install bootstrap in laravel 
Php :: laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 - your php version (8.1.6) does not satisfy that req 
Php :: php connect to postgresql 
Php :: laravel model string primary key 
Php :: wp mail 
Php :: function exists php 
Php :: laravel request url 
Php :: row count in codeigniter 
Php :: how get last item in foreach in laravel 
Php :: get user ip in php 
Php :: get parent page link wordpress 
Php :: check if constant is defined php 
Php :: Error Call to undefined function CodeIgniterlocale_set_default() 
Php :: laravel old request htmlselect 
Php :: page load time in php 
Php :: laravel test assert redirecto to 
Php :: calcolo iva php 
Php :: superglobal php 
Php :: how to install php fm 
Php :: get index of element in array php 
Php :: valide email php 
Php :: validator number laravel 
Php :: convert to int laravel 
Php :: with in relation laravel 
Php :: laravel env 
Php :: running laravel as host 
Php :: php sql connection string 
Php :: replace _ with space php 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =