I use this in function.php but not work
//portfolio query
add_filter( ‘avia_post_grid_query’, ‘custom_post_grid_query’, 10, 2);
function custom_post_grid_query( $query, $params ) {
$id = avia_get_the_ID();
$query[‘post__not_in’] = array($id);
return $query;
}
Hey unicaweb,
Which id are you getting? what do you want to exclude? Can you explain a bit more?
Best regards,
Victoria