Output string using php printf
the_content() prints it output to screen. What you want is to return that output and assign a variable to it. You should note, although get_the_content() do exactly what you want, it only returns unfiltered content, and not filtered content like the_content(). You should manually add those filters, which is real easy. You can do the … Read more