This repository has been archived by the owner on Oct 29, 2022. It is now read-only.
Releases: RostiMelk/ACF-Tools
Releases · RostiMelk/ACF-Tools
v2.2.3
Fixed an issue where the field type would not get updated if the user changed the field type a second time.
Email field will now include HTML and a conditional statement.
Example:
<?php if ( $contact = get_field('contact') ): ?>
<a href="mailto:<?php echo $contact; ?>"><?php echo $contact; ?></a>
<?php endif; ?>
Image field will now use field name as a variable instead of a fixed $image variable.
Example:
<?php
$article_image = get_field('article_image');
$size = 'full';
if( $article_image ) {
$url = wp_get_attachment_url( $article_image );
echo wp_get_attachment_image( $article_image, $size );
}; ?>