/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?php if (have_posts()) :
while (have_posts()) : the_post();
$customField = get_post_custom_values("img");
//Custom field is set, display post info
the_title();
the_excerpt();
}
endwhile;
endif;
?>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                