Exclude the category of the current post August 28, 2022 by Tarik Billa wp_get_post_categories() (Codex reference) is used to get the categories for a post