The Grid - Do Not Show Active Post

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?

actually this is a caching problem with The Grid… I will figure it out with them

Glad you’ve sorted it out.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.