Recommended method for incorporating categories in snippets


I recently installed Algolia on and am loving it!

I’d like to be able to include links to categories as part of my search results - what is the recommended way of doing this?


Hi Douglas,

This can be done by adding an attribute to your records in Algolia. You can follow this guide which shows how to add a views counter but instead, add the main category name and the link:

After that you can customize the template to add this link. There is also some documentation for that:

I hope that helps! Please let me know if that worked :slight_smile: