the terms( – what to display before the actual tags are displayed
-
I’m using the following code to show the tags that are associated with each post on the post itself.
<?php the_terms( $id, $taxonomy, $before, $sep, $after ); ?>
It works great until I have post that does not have any tags for a particular taxonomy. I would like the $before parameter to show even if there is no tags. Currently it only shows if that post has a tag. See example at http://www.efreebn.org/vol_positions/office-worker/ See how there are only three categories with tags. There is a line space between a couple of them.
Then see http://www.efreebn.org/vol_positions/helps-team/ Now there are five categories with tags. No spaces.
I’d like for the first one to look like this:
Location: Serving on Campus
Time Required: Occasional
Passions:
Spiritual Gifts: Administration, Serving
Skills:
- The topic ‘the terms( – what to display before the actual tags are displayed’ is closed to new replies.