Home › Forums › Feature Requests › relationshipfield with direct link to post › Reply To: relationshipfield with direct link to post
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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.