I have a grid carousel to show other posts in the same category. I used this code to exclude the current post from the grid:
function current_post_tgfilter($args) {
$args['post__not_in'] = array (get_the_ID());
return $args;
}
add_filter('tg_wp_query_args', 'current_post_tgfilter');
However this doesn’t seem to work anymore. Any ideas?