Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    We need more context to properly answer your question. Where are you doing this? What do you want to accomplish? What are you doing now?

    Thread Starter gerrit1954

    (@gerrit1954)

    $bestand="/wp-content/gallery/Maandfotos/Maandfoto-142.jpeg" 
     <img src="$bestand" width="480" height="360" />

    <img src="/wp-content/gallery/Maandfotos/Maandfoto-142.jpeg" width="480" height="360" />

    de 1e werkt niet, de 2e wel

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    The first should be

    <img src="<?php echo $bestand;?>" width="480" height="360" />

    You can’t just drop a PHP variable into HTML and expect PHP things to happen.

    Thread Starter gerrit1954

    (@gerrit1954)

    thanks

    Thread Starter gerrit1954

    (@gerrit1954)

    Als beginnend wordpresser vond ik hem wel handig

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘img src’ is closed to new replies.