/ Published in: PHP
Expand |
Embed | Plain Text
function get_taxonomy_terms($taxonomy,$parent = 0){ //Si viene padre 0 estamos cogiendo solo las categorias padre $categories = get_categories( "taxonomy=$taxonomy&pad_counts=1" ); foreach($categories as $id => $category){ } return $categories; }
You need to login to post a comment.
