This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function list_my_categories(){ | |
$categories = get_categories('parent=0'); | |
$html = ''; | |
foreach ($categories as $q_cat) { | |
$cat = get_category($q_cat); | |
$html .= '<div class="span12 service_container"><div class="row">'; | |
// category parent | |
$html .= '<div id="piscinaProduct" class="span12 product_block product_name_title_active">'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* List categories of categories page */ | |
function list_my_subcategories(){ | |
$q_cat = get_query_var('cat'); | |
$cat = get_category($q_cat); | |
$catid = $cat->cat_name; | |
/*get the parent*/ | |
$q_parent = $cat->category_parent; | |
$parent = get_category($q_parent); | |
$parentid = $parent->cat_name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* List categories of categories page */ | |
function list_my_categories($exclude = '') { | |
if (!empty($exclude)) { | |
$exclude = 'exclude=' . $exclude; | |
} | |
$categories = get_categories($exclude); | |
$categories = get_categories($args); | |
$html = ''; | |
foreach ($categories as $cat) { |