[Resolved] [Plugin: The Events Calendar] tribe_meta_event_cats label arg bug
I’m using tribe_meta_event_cats in a custom loop via WP_Query.
When I use any of the following:
tribe_meta_event_cats( null );
tribe_meta_event_cats( '' );
tribe_meta_event_cats( false );
I get the following output:
<dt>Category:</dt> <dd><a rel="tag" href="[cat-href]">[cat name]</a></dd>
When I put a string in for the first argument like
tribe_meta_event_cats( 'This is the category:' );
I get the expected output:
<dt>This is the category:</dt> <dd><a rel="tag" href="[cat-href]">[cat name]</a></dd>
I expected that where it says “Category” in the first HTML output, it would instead be blank using at least one of ”/null/false as the first argument.
And a brief opinion about the function in general. It appears that it only outputs a definition term/defintion pairing and so should always be wrapped in
<dl>. If the function is just using the_tags(), I wish they would leave the before and after arguments exposed. Then if a definition list is desired, it’s available but not required. If it’s really parallel to the_category or the_tags, I would expect the output to be similar as well.
- The topic ‘[Resolved] [Plugin: The Events Calendar] tribe_meta_event_cats label arg bug’ is closed to new replies.