Browse Source

Search: hide 'Filed under' for pages

MathiasB 11 years ago
parent
commit
1210f94c54
1 changed files with 5 additions and 3 deletions
  1. 5 3
      search.php

+ 5 - 3
search.php

@@ -27,10 +27,12 @@
 								</section>
 
 								<footer class="article-footer">
+									
+									<?php if(get_the_category_list(', ') != ''): ?>
+                  					<?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
+                  					<?php endif; ?>
 
-                  <?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
-
-                  <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
+                 					<?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
 
 								</footer> <!-- end article footer -->