why does my smoke animation shown in the viewport shading but not shown in the render shading
I guess you are missing the text in the attribute node, but in my opinion if you use Blender 2.8, instead of using the old way, you can try the new way using new volume shader, Principled Volume Shader