Beispiel #1
0
 public function wp_query()
 {
     $sapi = new sapi();
     if (empty($_GET)) {
         $sapi->que_error("See more details on the 'wp_query' function at https://codex.wordpress.org/Class_Reference/WP_Query");
         $sapi->error("Please input query variables");
     }
     $results = new WP_Query($_GET);
     return array("query" => $_GET, "posts" => $results->posts);
 }