Return the_content instead of echo. Add files to end of page content. Display nothing if no files