PHP problem in WordPress

Discussion in 'PHP' started by NaSh123, Mar 8, 2009.

  1. #1
    I am using the following code:i

    $image_bpost = get_post_meta($post->ID, 'graphic_location', true);
    echo $image_bpost;

    In the post I have a custom field defined as graphic_location and the value is /images/location/graphic.jpg

    Any idea why it won't output "images/location/graphic.jpg"
     
    NaSh123, Mar 8, 2009 IP