Skip to content

Instantly share code, notes, and snippets.

@Dianakc
Last active December 25, 2015 08:09
Show Gist options
  • Save Dianakc/3e850ba07abda1909341 to your computer and use it in GitHub Desktop.
Save Dianakc/3e850ba07abda1909341 to your computer and use it in GitHub Desktop.
<?php
$terms = get_terms("funcs");
$count = count($terms);
if ( $count > 0 ){
echo '<div id="dd" class="wrapper-dropdown-5" tabindex="1"><span class="icon-fun">Fun&ccedil;&otilde;es</span>'."\n".'<ul class="dropdown">'."\n";
foreach ( $terms as $term ) {
echo "\t\t".'<li><a href="'.get_term_link($term->name,'funcs').'">' . $term->name . '()</a></li>'."\n";
}
echo '</ul>'.'</div>'."\n";
}
;?>
<?php
$terms = get_terms("arquivos");
$count = count($terms);
if ( $count > 0 ){
echo '<div id="dd2" class="wrapper-dropdown-5" tabindex="1"><span class="icon-file">Arquivos</span>'."\n".'<ul class="dropdown">'."\n";
foreach ( $terms as $term ) {
echo "\t\t".'<li><a href="'.get_term_link($term->name,'arquivos').'">' . $term->name . '</a></li>'."\n";
}
echo '</ul>'.'</div>'."\n";
}
;?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment