Ejemplo n.º 1
0
 public static function &object()
 {
     if (!self::$object instanceof self) {
         self::$object = new self();
     }
     if (empty(self::$wp_query)) {
         self::$wp_query = new WP_Query(array('post_type' => 'post'));
     }
     return self::$object;
 }