Permalink
Browse files

Updated Charcoal to use taxonomy properties instead of old tag proper…

…ties.
  • Loading branch information...
1 parent 9767479 commit 46c76b2d175015c2d522c7320384bc843909a2bf @ringmaster ringmaster committed Mar 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 themes/charcoal/entry.single.php
  2. +1 −1 themes/charcoal/theme.php
@@ -14,7 +14,7 @@
</div>
<?php endif; ?>
<div class="<?php echo $post_class?>">
- <?php if ( is_array($post->tags) ) : ?>
+ <?php if ( count($post->tags) ) : ?>
<div class="post-tags">
<?php echo $post->tags_out;?>
</div>
@@ -138,7 +138,7 @@ public function add_template_vars()
*/
public function filter_post_tags_out( $array )
{
- $fn = create_function( '$a', 'return "<a href=\\"" . URL::get("display_entries_by_tag", array( "tag" => $a->tag_slug) ) . "\\" rel=\\"tag\\">" . $a->tag . "</a>";' );
+ $fn = create_function( '$a', 'return "<a href=\\"" . URL::get("display_entries_by_tag", array( "tag" => $a->term) ) . "\\" rel=\\"tag\\">" . $a->term_display . "</a>";' );
$array = array_map( $fn, (array)$array );
$out = implode( ' ', $array );
return $out;

0 comments on commit 46c76b2

Please sign in to comment.