Here are a few ways to Query Posts in Wordpress as a string and array:-