Answers for "acf print image"

PHP
0

wp+get custom field phpto

<div class="about_photo">
		<?php
		$value =get_field('about_photo');
		 echo "<img src='".$value."' width='200px' height='200px'>";
		 ?>
</div>
Posted by: Guest on November-20-2020
0

displaying a image background with acf options

<div id="mainPhoto" style="background-image: url(<?php the_field('background_image'); ?>);">
			<div id="pageTitle">
				<?php the_field('page_title'); ?>
			</div>
		</div>
Posted by: Guest on September-22-2020

Browse Popular Code Answers by Language