Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter JOHN2000

    (@john2000)

    I use this code for add image

    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    } else { ?>
    <img src="https://www.image.com/image.png"
    alt="<?php the_title(); ?>" />
    <?php } ?>
    Plugin Author NextScripts

    (@nextscripts)

    Thread Starter JOHN2000

    (@john2000)

    This Article dont help me!

    Before i use External Images works fine!

    If i uncheck Image Auto show not Images!

    I Am Permium client

    Thread Starter JOHN2000

    (@john2000)

    I Use Advanced Custom Fields Plugin to add an ID

    and use this code in my loop-blog.php

    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    } else { ?>
    <img src="https://www.image.com/<?php the_field('img_id'); ?>.png"
    alt="<?php the_title(); ?>" />
    <?php } ?>

    in post have no Featured Image!

    Gives a way to work with SNAP?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘External Image’ is closed to new replies.