def blog__sync_db_post_field(post, db_post_field)
      post_fields = CONFIGS[:lato_blog][:post_fields]
      # search db post field on config file
      content = post_fields[db_post_field.key]
      db_post_field.update(meta_visible: false) && return unless content
      # check category of post field is accepted
      if content[:categories] && !content[:categories].empty?
        db_categories = LatoBlog::Category.where(meta_permalink: content[:categories])
        db_post_field.update(meta_visible: false) && return if (post.categories.pluck(:id) & db_categories.pluck(:id)).empty?
      end
    end
def blog__sync_db_post_field(post, db_post_field)
      post_fields = CONFIGS[:lato_blog][:post_fields]
      # search db post field on config file
      content = post_fields[db_post_field.key]
      db_post_field.update(meta_visible: false) && return unless content
      # check category of post field is accepted
      if content[:categories] && !content[:categories].empty?
        db_categories = LatoBlog::Category.where(meta_permalink: content[:categories])
        db_post_field.update(meta_visible: false) && return if (post.categories.pluck(:id) & db_categories.pluck(:id)).empty?
      end
    end
This function syncronizes a single post field of a specific post with config file.