- Whole Health Network Support
- 970–372-4344
Product Manuals (in PDF Format)
Product |
LiveO2 Standard |
LiveO2 Adaptive Contrast |
Site Index
'name',
'order' => 'ASC',
'parent' => 0,
'hide_empty' => 0,
'exclude' => 1);
$categories_list = '';
$parent_categories = get_categories($args);
foreach($parent_categories as $category) {
$tab_nav = ''; $tabs = '';
$categories_list .= '
// PARENT (PRODUCTS, WHOLE HEALTH NETWORK)
$categories_list .= '
' . $category->name . '
';
// get all children of this category
// PRODUCT NAMES
$args = array('orderby' => 'name',
'order' => 'ASC',
'parent' => $category->term_id,
'exclude' => array(7,24), // ignore ExtremeO2 and MagnaPulse
'hide_empty' => 0);
$child_categories = get_categories($args);
// CREATE A TAB FOR EACH PRODUCT
$tab_nav .= '
- ';
- Make Sure to Set a Title ';
- ' . get_the_title() .'
$active_nav = true;
$active_tab = true;
foreach ($child_categories as $child_category) {
$tab_nav .= '
$tabs .= '[tab';
if ($active_tab) {
$tabs .= ' active="true"';
$active_tab = false;
}
$tabs .= ']';
// get all children of this child category
// ALL SUBCATEGORIES FOR EACH PRODUCT
$args = array('orderby' => 'name',
'order' => 'ASC',
'parent' => $child_category->term_id,
'hide_empty' => 0);
$sub_categories = get_categories($args);
if (count($sub_categories) > 0) {
$tabs .= '
foreach ($sub_categories as $sub_category) {
$tabs .= '';
}
$tabs .= '
}
else { // no subcategories for this product, list the posts
// get posts for this subcategory
$args = array( 'cat' => $child_category->term_id,
'posts_per_page' => -1 );
$category_posts = new WP_Query($args);
if (count($category_posts) > 0) {
$tabs .= '
- ';
while ( $category_posts->have_posts() ) {
$category_posts->the_post();
$tabs .= '
';
}
$tabs .= '
';
}
wp_reset_postdata();
}
$tabs .= '[/tab]';
}
$tab_nav .= '
$categories_list .= $tab_nav . '
}
echo $categories_list;
?>
Still can’t find what you’re looking for? We’re here to help. Call us at (970) 372‑4344 or use our online support form.