Ver código fonte

Search: hide 'Filed under' for pages

MathiasB 11 anos atrás
pai
commit
1210f94c54
1 arquivos alterados com 5 adições e 3 exclusões
  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 -->