Browse Source

Update single-custom_type.php

Fixed wrong footer class.

Added warning for the need to rename custom_tag and custom_cat. Because it may be confusing if it's not explained.
andamira 12 năm trước cách đây
mục cha
commit
af7d38a3d8
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      single-custom_type.php

+ 4 - 1
single-custom_type.php

@@ -7,6 +7,9 @@
  *
  * For Example, if your custom post type is "register_post_type( 'bookmarks')",
  * then your single template should be single-bookmarks.php
+ * 
+ * Be aware that you should rename 'custom_cat' and 'custom_tag' to the appropiate custom
+ * category and taxonomy slugs, or this template will not finish to load properly.
  *
  * For more info: http://codex.wordpress.org/Post_Type_Templates
 */
@@ -59,7 +62,7 @@
 									?>
 								</section> <!-- end article section -->
 
-								<footer class="article-header">
+								<footer class="article-footer">
 									<p class="tags"><?php echo get_the_term_list( get_the_ID(), 'custom_tag', '<span class="tags-title">' . __( 'Custom Tags:', 'bonestheme' ) . '</span> ', ', ' ) ?></p>
 
 								</footer> <!-- end article footer -->