Post injection – how to exclude the original post

I think pre_get_posts should work with $query->set().
Only problem I see there is you are using get_the_ID() in a hook. Try using global $post variable to get the current post id.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)