Esempio n. 1
0
 public function children($args = array())
 {
     return Query::post($this->raw->post_type)->parent($this->raw->ID)->get();
 }
Esempio n. 2
0
 public function posts($args = array())
 {
     return Query::post($this->taxonomy == 'nav_menu' ? 'nav_menu_item' : 'any')->tax(array('taxonomy' => $this->taxonomy, 'field' => 'term_id', 'terms' => $this->ID))->get();
 }