WordPress.org

Ready to get started?Download WordPress

Forums

Image won't display at all, TimThumb (2 posts)

  1. jasondrew
    Member
    Posted 5 years ago #

    Hi, I have been trying all day, but no success.

    <?php if( get_post_meta($post->ID, "profile-photo", true) ) { ?>
    				<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo get_post_meta($post->ID, "profile-photo", true); ?>&w=250&h=250&zc=1" width="250" height="250" alt="featured dating profile" class="alignleft" />
    				<?php } else { ?>
    				<img src="<?php bloginfo('template_url'); ?>/img/profile-photo.jpg" width="250" height="250" alt="featured dating profile" class="alignleft" />
    				<?php } ?>

    I have cache 777. In my article I added profile-photo as a custom field, and inserted a link. Ive tried saving the image local or with a URL. no luck.

    No picture loads, only the ALT text is seen.

    When I take away the custom field, profile-photo.jpg displays perfectly.

    I can't resolve this problem, please help!

  2. jasondrew
    Member
    Posted 5 years ago #

    push

Topic Closed

This topic has been closed to new replies.

About this Topic