Show highest and lowest taxonomy value
-
I use this code to display the amount of players that can play a board game:
<p><?php echo get_the_term_list( $post->ID, 'players', '<b>Players:</b> ', ', ', '' ); ?></p>
But I would like to show the highest and lowest value of the Taxonomies called players. Can anyone help with that? The goal is to show this:
Players: 2-8
Where the post has all these values in the custom taxonomy: 2,3,4,5,6,7,8
I have also used a custom field for it, but it doesn’t give the same flexibility in regards to archive listings.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Show highest and lowest taxonomy value’ is closed to new replies.