def add_to_default_category
      default_category_parent = LatoBlog::CategoryParent.find_by(meta_default: true)
      return unless default_category_parent

      category = default_category_parent.categories.find_by(meta_language: meta_language)
      return unless category

      LatoBlog::CategoryPost.create(lato_blog_post_id: id, lato_blog_category_id: category.id)
    end
def add_to_default_category
      default_category_parent = LatoBlog::CategoryParent.find_by(meta_default: true)
      return unless default_category_parent

      category = default_category_parent.categories.find_by(meta_language: meta_language)
      return unless category

      LatoBlog::CategoryPost.create(lato_blog_post_id: id, lato_blog_category_id: category.id)
    end
This function add the post to the default category.