Title: Php Code Stuck
Last modified: August 19, 2016

---

# Php Code Stuck

 *  [ringer](https://wordpress.org/support/users/ringer/)
 * (@ringer)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/php-code-stuck/)
 * Hi Guys, im fairly new to php so a hand would be appreciated.
 * i want a plugin i have to call the custom field that i have created called “thumbnail”,
 * the current code reads :
 * if ($image == ”) $image = get_option(‘siteurl’) . ‘/wp-content/uploads/products_img/’;
 * I tried the code below with no luck
 * if ($image == ”) $image = get_option(‘siteurl’) . ‘/wp-content/uploads/products_img/
   <?php echo get_post_meta($post->ID, ‘thumbnail’, true);?>’;
 * Any ideas will be very much appreciated as ive been banging my head against the
   wall!

Viewing 1 replies (of 1 total)

 *  Thread Starter [ringer](https://wordpress.org/support/users/ringer/)
 * (@ringer)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/php-code-stuck/#post-1734620)
 * mmmm the lack of response tells me this is a bigger problem then i first thought!

Viewing 1 replies (of 1 total)

The topic ‘Php Code Stuck’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [ringer](https://wordpress.org/support/users/ringer/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/php-code-stuck/#post-1734620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
