WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages
Can't make image tag work (1 post)

  1. Davedub
    Member
    Posted 2 years ago #

    Hi, I'm trying to get an image to display. The image's URL is the result of a mysql call to another (i.e. non-wp) database.

    Code:
    echo "[p ]".$blurb_result_row[1]."[br /][/p]";
    echo "[img src='".$blurb_result_row[0]."][br /]";
    echo "[p ]".$blurb_result_row[0]."[/p]";

    Result:
    Club Dances for guys. Cool, Very cool
    [img src='http://animazooanimations.com/img/dances_jays.jpg]

    http://animazooanimations.com/img/dances_jays.jpg

    I've tried all sorts of combinations, nothing will display the image!

    Separate note: I have to put the space after the p tag (i.e. use [p ] not [p]) as it didn't work without the space...

    Any help much appreciated!

    - Davedub

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags