Title: Custom field problem
Last modified: August 20, 2016

---

# Custom field problem

 *  [michaelphill](https://wordpress.org/support/users/michaelphill/)
 * (@michaelphill)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/custom-field-problem-5/)
 * I’m trying to create a page that lists the name and link to each of its child
   pages along with a custom thumbnail image for each.
 * I created a custom field in each of the child pages called “Thumbmail” and have
   a URL entered in there.
 * I think use this code:
    [http://pastebin.com/r39edWmn](http://pastebin.com/r39edWmn)
 * The names of the child pages output fine and the links work, but the images do
   not. If you look at the source code, this is what is outputted: <img src=”” width
   =”80″ height=”80″>.
 * Any ideas why?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/custom-field-problem-5/#post-2159320)
 * [http://codex.wordpress.org/Custom_Fields](http://codex.wordpress.org/Custom_Fields)
   
   [http://codex.wordpress.org/Function_Reference/get_post_meta](http://codex.wordpress.org/Function_Reference/get_post_meta)
 * try:
 *     ```
       <a href="<?php echo get_page_link($page->ID) ?>"><img src="<?php echoget_post_meta($page->ID, "Thumbnail", true); ?>" width="70" height="70"></a><a href="<?php echo get_page_link($page->ID) ?>"><h3><?php echo $page->post_title ?></h3></a></div>
       ```
   
 *  Thread Starter [michaelphill](https://wordpress.org/support/users/michaelphill/)
 * (@michaelphill)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/custom-field-problem-5/#post-2159460)
 * That completely broken the page; now nothing outputs 🙁

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom field problem’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [michaelphill](https://wordpress.org/support/users/michaelphill/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/custom-field-problem-5/#post-2159460)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
