I'm having a strange issue with tags_out after updating to 0.7-dp3
(from .6.something).
I am outputting a list of tags using tags_out.
<?php if ( $post->tags ) { ?>
<td><div class="tags"><?=_e('Tagged:')?> <?=$post->tags_out; ?
></div></td>
<?php } ?>
I have also copied a line into action_init_theme() from another theme
to list the tags in order to get the list of links:
Format::apply( 'tag_and_list', 'post_tags_out' );
Since the SVN update, something weird is going on when there are
multiple posts displaying on the page. The first post works fine, but
then the second one breaks and PHP exits. I have added some debug
statements to try and see what's going on.
The first time around, the first parameter sent to tag_and_list is a
Terms object, and everything works fine. In the next post, the first
parameter to tag_and_list is a string containing the tag link. Each
subsequent post calls tag_and_list an increasing number of times and
each time a string is passed as the first parameter.
I can't figure out why it would do this - there is obviously something
going on in the background that I'm not aware of, and I don't know how
to track it down further.
FYI, if I put
if ( is_string($terms) ) {
return $terms;
}
at the top of tag_and_list() it works fine, but that is just ignoring
the weird behavior.
Thanks,
Brian
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users