May be duplicate, but I wasn’t able to find the answer. $item->object_id
stores the actual post ID:
$slug = get_post_field('post_name', $item->object_id);
May be duplicate, but I wasn’t able to find the answer. $item->object_id
stores the actual post ID:
$slug = get_post_field('post_name', $item->object_id);