updated code to safe html and social links open in new window

This commit is contained in:
jorge 2024-04-19 10:59:46 +02:00
parent bf101f4cb1
commit 7c88cab713
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
<h6>Adreça:</h6>
<p><?php the_field('xxp_associat_address'); ?></p>
<p><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></p>
</li>
<?php endif; ?>
@ -81,7 +81,7 @@
<?php while( have_rows('xxp_asocciat_social_networks') ): the_row(); ?>
<li>
<?php $eachlink=get_sub_field('xxp_associat_link_social'); ?>
<a href="<?php echo esc_attr($eachlink);?>" title="<?php echo esc_attr($eachlink);?>"><?php echo esc_attr($eachlink);?></a>
<a href="<?php echo esc_attr($eachlink);?>" title="<?php echo esc_attr($eachlink);?>" target="_blank"><?php echo esc_attr($eachlink);?></a>
</li>
<?php endwhile; //end while has rows associat social networks ?>
</ul>

View File

@ -74,7 +74,7 @@
</li>
<li class="xarxaprod-convo-associat-address">
<dt>Lloc</dt>
<dd><a href="<?php the_permalink(); ?>"><?php the_field('xxp_associat_address'); ?></a></dd>
<dd><a href="<?php the_permalink(); ?>"><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></a></dd>
</li>
<?php endforeach;
// Reset the global post object so that the rest of the page works correctly.

View File

@ -29,7 +29,7 @@
<?php if( get_field('xxp_associat_address') ): ?>
<li class="xarxaprod-associat-address">
<h6>adreça / direccion:</h6>
<p><?php the_field('xxp_associat_address'); ?></p>
<p><?php echo wp_kses_post( get_field('xxp_associat_address') ); ?></p>
</li>
<?php endif; ?>