Created
March 10, 2023 21:26
-
-
Save mikeoberdick/5120317ce542cf49c39ffb5946808287 to your computer and use it in GitHub Desktop.
Use the responsive srcset functionality with ACF.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $image = get_field('about_img'); | |
if( $image ) { | |
echo wp_get_attachment_image( $image, 'full', "", array( "class" => "img-fluid" ) ); | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment