How to display an "and" between the last or only two Byline terms
-
Here is how to generate bylines like:
Author 1 and Author 2
Author 1, Author 2 and Author 3You can throw in an Oxford comma too if you want:
Author 1, Author 2, and Author 3
There are several ways you could do this within the plugin logic code, but they would complicate the code and mix up logic and presentation more than it already is in WordPress. This simple CSS solution is the best way to go: https://stackoverflow.com/questions/6587807/comma-delimited-lists-with-css-i-want-an-oxford-comma
Only a few minor changes to the existing plugin code will be necessary:
https://codex.www.ads-software.com/Function_Reference/get_the_term_list#Returning_an_HTML_List
- The topic ‘How to display an "and" between the last or only two Byline terms’ is closed to new replies.