• 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.