bobbingwide / genesis-SB

Genesis-SB - Specially Built for seriously bonkers.com / bigram.co.uk
https://seriouslybonkers.com
GNU General Public License v2.0
0 stars 0 forks source link

Support multiple terms in Category - don't display commas #6

Open bobbingwide opened 6 years ago

bobbingwide commented 6 years ago

I've decided to allow bigrams to exist in multiple categories. The items in the the Category list are separated by commas. We don't need these.

bobbingwide commented 6 years ago

The prototype implementation of the solution, using a custom post processing filter, is only one of the possible solutions and required changes to the oik base plugin.

An alternative solution, that would have been more complex, would have been a pre-processing filter that allowed setting of the optional parameters passed to get_the_term_list().

Changes that wouldn’t have required a co-req change in the oik base plugin are:

Added a post processing function for the [bw_field] shortcode using bw_add_shortcode_event(). Add a filter function for oik_shortcode_result. The first would be slightly more efficient. The second more WordPressy. I think I’ll implement the second.