and how can i exclude results? i tried this:
function only_big_images( $html, $post ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'shop_catalog' );
if($image[1] >= 600){
return $html;
}
}
but then in the relationship field list still exist “empty” items with the label “null”. i want to hide them completely from the list!