<section class="taxonomy">
				
	<div class="tags-list">
		<span>Filters <b>+</b></span>
		<div class="tags-toggle">
			<?php 
$tag_args = array('smallest' => 10, 'largest' => 10, 'format' => 'list', 'taxonomy' => 'note', 'child_of' => null);
wp_tag_cloud($tag_args);
?>
		</div>
	</div>

	<?php 
// (System function) $cat_args = array( 'smallest' => 10, 'largest' => 10, 'orderby' => 'term_id', 'include' => array('107', '108', '109', '110'), 'taxonomy' => 'group', 'child_of' => null);
// Instead of using wp we build it manually, taking in count if translation needs to be call
$id_categories = lang_object_ids(array(428, 429), 'group');
$links_categ = '';
// Handle the base url depending of the language
if (ICL_LANGUAGE_CODE == 'de') {
    $basepath = site_url();
} else {
    if (ICL_LANGUAGE_CODE == 'en') {
        $basepath = site_url() . "/en";
    }
}
foreach ($id_categories as $categ) {
    $catobject = get_term_by('id', $categ, 'group');
    $links_categ .= '<a title="" class="tag-link-' . $catobject->term_taxonomy_id . '" href="' . $basepath . '/group/' . $catobject->slug . '/">' . $catobject->name . '</a>';
}
?>
Ejemplo n.º 2
0
<section class="taxonomy">
				
	<div class="tags-list">
		<span>Filters <b>+</b></span>
		<div class="tags-toggle">
			<?php 
$tag_args = array('smallest' => 10, 'largest' => 10, 'format' => 'list', 'taxonomy' => 'post_tag', 'child_of' => null);
wp_tag_cloud($tag_args);
?>
		</div>
	</div>

	<?php 
// Instead of using wp we build it manually, taking in count if translation needs to be call
$id_categories = lang_object_ids(array(102, 103, 90, 605), 'category');
$links_categ = '';
// Handle the base url depending of the language
if (ICL_LANGUAGE_CODE == 'de') {
    $basepath = site_url();
} else {
    if (ICL_LANGUAGE_CODE == 'en') {
        $basepath = site_url() . "/en";
    }
}
foreach ($id_categories as $categ) {
    $catobject = get_category($categ);
    $links_categ .= '<a title="" class="tag-link-' . $catobject->term_taxonomy_id . '" href="' . $basepath . '/category/' . $catobject->slug . '/">' . $catobject->name . '</a>';
}
?>
Ejemplo n.º 3
0
<section class="taxonomy">
				
	<div class="tags-list">
		<span>Filters <b>+</b></span>
		<div class="tags-toggle">
			<?php 
$tag_args = array('smallest' => 10, 'largest' => 10, 'format' => 'list', 'taxonomy' => 'label', 'child_of' => null);
wp_tag_cloud($tag_args);
?>
		</div>
	</div>

	<?php 
// (System function) $cat_args = array( 'smallest' => 10, 'largest' => 10, 'orderby' => 'term_id', 'include' => array('107', '108', '109', '110'), 'taxonomy' => 'thema', 'child_of' => null);
// Instead of using wp we build it manually, taking in count if translation needs to be call
$id_categories = lang_object_ids(array(107, 108, 109, 110), 'thema');
$links_categ = '';
// Handle the base url depending of the language
if (ICL_LANGUAGE_CODE == 'de') {
    $basepath = site_url();
} else {
    if (ICL_LANGUAGE_CODE == 'en') {
        $basepath = site_url() . "/en";
    }
}
foreach ($id_categories as $categ) {
    $catobject = get_term_by('id', $categ, 'thema');
    $links_categ .= '<a title="" class="tag-link-' . $catobject->term_taxonomy_id . '" href="' . $basepath . '/thema/' . $catobject->slug . '/">' . $catobject->name . '</a>';
}
?>
Ejemplo n.º 4
0
<section class="taxonomy">
				
	<div class="tags-list">
		<span>Filters <b>+</b></span>
		<div class="tags-toggle">
			<?php 
$tag_args = array('smallest' => 10, 'largest' => 10, 'format' => 'list', 'taxonomy' => 'type', 'child_of' => null);
wp_tag_cloud($tag_args);
?>
		</div>
	</div>

	<?php 
// (System function) $cat_args = array( 'smallest' => 10, 'largest' => 10, 'orderby' => 'term_id', 'include' => array('107', '108', '109', '110'), 'taxonomy' => 'kind', 'child_of' => null);
// Instead of using wp we build it manually, taking in count if translation needs to be call
$id_categories = lang_object_ids(array(420, 421), 'kind');
$links_categ = '';
// Handle the base url depending of the language
if (ICL_LANGUAGE_CODE == 'de') {
    $basepath = site_url();
} else {
    if (ICL_LANGUAGE_CODE == 'en') {
        $basepath = site_url() . "/en";
    }
}
foreach ($id_categories as $categ) {
    $catobject = get_term_by('id', $categ, 'kind');
    $links_categ .= '<a title="" class="tag-link-' . $catobject->term_taxonomy_id . '" href="' . $basepath . '/kind/' . $catobject->slug . '/">' . $catobject->name . '</a>';
}
?>