Ditto or Get Resource function.
I think you should start to read the wiki first, before asking questions. See this in-depth tutorial: http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution