get_categories wordpress code example Example: get_categories not__in $categories = get_categories(array( 'exclude' => $post_id, ));