/** * Table of contents. * * @param array $atts * @param string $content * @return mixed */ public function faq_table_of_contents($atts, $content = null) { extract(shortcode_atts(array('class' => '', 'orderby' => 'name', 'order' => 'ASC'), $atts)); // Terms $terms = get_terms('asq_category', array('orderby' => $orderby, 'order' => $order)); // View Asq::view('table-of-contents', array('class' => $class, 'terms' => $terms)); }