Support » Fixing WordPress » Trying to echo template tags custom field

  • I Don’t Know PHP Syntax can someone please correct the code for me:

    Trying to echo the template tags <?php the_permalink() ?>
    & <?php the_title(); /?> on a custom field image.


    if(get_post_custom_values('image')) :
    foreach(get_post_custom_values('image') as $value) {
    echo '<a href="<?php the_permalink ?>"<img src="' . $value . '" title="<?php the_title(); ?>" /></a>';
    else :
    echo '<img src="" title="no image" />;
    endif; ?>

    thank you for your help

  • The topic ‘Trying to echo template tags custom field’ is closed to new replies.