-
-
Save tommcfarlin/6e5445d9d3d45da14fcf to your computer and use it in GitHub Desktop.
Revisions
-
tommcfarlin revised this gist
Jan 6, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ foreach ( $materials as $material ) { if ( count( get_term_children( $material->term_id, 'acme_materials' ) ) > 0 ) { // The term has children } } -
tommcfarlin created this gist
Jan 5, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php // First, read the reads $materials = wp_get_post_terms( get_the_ID(), 'acme_materials' ); foreach ( $materials as $material ) { if ( count( get_term_children( $material->term_id, 'acme_materials' ) ) > 0 ) { // The term has no children } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php // First, read the reads $materials = wp_get_post_terms( get_the_ID(), 'acme_materials' ); foreach ( $materials as $material ) { if ( count( get_term_children( $material->term_id, 'acme_materials' ) ) === 0 ) { // The term has no children } }