Interesting image url issue
-
I am using the following code:
if( class_exists(‘Dynamic_Featured_Image’) ):
global $dynamic_featured_image;
global $post;
$featured_images = $dynamic_featured_image->get_featured_images( $post->ID );if ( $featured_images ):
?>
<?php foreach( $featured_images as $images ): ?>
<img src=”<?php echo $images[‘full’] ?>” alt=””>
<?php endforeach; ?>
<?php
endif;
endif;It seems to work except it gives an extra “/assets/” in the image url
<img src=”http://www.example.com/assets/assets/imge.jpg”>
Any suggestions? When I remove one of the “/assets” in the Inspector, the image shows.
The topic ‘Interesting image url issue’ is closed to new replies.