WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages
echo img (2 posts)

  1. piedro666
    Member
    Posted 1 year ago #

    Hi,
    I'm trying to show an image in my post but it doesn't work

    [php]
    echo '<img src="http://localhost/test/wp-content/uploads/2013/03/1.png" height="100" width="100">';
    [/php]

    Could you help me to find out where the mistake is, please?

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

  2. piedro666
    Member
    Posted 1 year ago #

    I have solved this problem:

    [php]
    $Image="http://localhost/test/wp-content/uploads/2013/03/1.png";
    echo "[img src ='".$Image."']";
    [/php]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic