• Resolved zfly9

    (@zfly9)


    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”&gt;

    Any suggestions? When I remove one of the “/assets” in the Inspector, the image shows.

    https://ww.wp.xz.cn/plugins/dynamic-featured-image/

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Interesting image url issue’ is closed to new replies.