This members-only tutorial provides the steps to register a custom block for WP Grid Builder that outputs comma-separated links for categories of each post in the grid in a custom format.
The benefit of doing this is that clicking the term archive links will not take the visitor to separate term archive pages but rather do the filtering.
Step 1
Add the following snippet using a code snippets like WPCodeBox and set it load on frontend.