Open bobbingwide opened 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.
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.