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