Title: Trouble with Custom Fields
Last modified: August 19, 2016

---

# Trouble with Custom Fields

 *  [pedro-tejada](https://wordpress.org/support/users/pedro-tejada/)
 * (@pedro-tejada)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-custom-fields/)
 * Hi!
 * I’m trying to do some changes on a friend website. The programmer that she hired
   did a weird job, but the site is running right now…
 * On her search system, the results display two custom fields keys. The posts are
   not clickable, but through google often people falls into this single post, but
   inside the post, the keys are not showing up.
 * I tried to copy the PHP code from the search results templates in the single 
   post template that the theme uses to display the post, and ended up with that:
 *     ```
       <div class="list-box">
   
                                           <div class="list-info-box leia-mais">
                                               <h4><?php the_title(); ?></h4>
                                               <div class="list-img"><?php the_post_thumbnail('large'); ?>
                                               <p><?php the_content(); ?></p>
                                               <p style="line-height:25px;"><i><?php echo get_post_meta($post->ID,'nome cientifico',1); ?></i></p>                              	
   
                                              	<p><strong><h2>Palavras Chave</h2></strong>
   
                                                 <?php the_tags('','<font color="FFFFFF">,</font> ',''); ?></
                                       </div>
       								</div>
       ```
   
 * Unfortunately, it’s not working… I tried different codes that I found on the 
   internet, but I just can’t find the problem!
 * The post thumbnail wasn’t showing up, I copied the code from the search results
   template and it worked perfectly… My only trouble is with this custom fields…!
 * Anyone knows whats going on? Any tips?
 * Thanks for the help!

The topic ‘Trouble with Custom Fields’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [keys](https://wordpress.org/support/topic-tag/keys/)
 * [show](https://wordpress.org/support/topic-tag/show/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [pedro-tejada](https://wordpress.org/support/users/pedro-tejada/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/trouble-with-custom-fields/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
