custom get_news_by_id with type information
add data attribute for news type