How do I set up related listings?

How do I set up related listings by attribute? It needs to display related listings with the same number of rooms. Currently, the filtering of “related listings” occurs only by category

It’s possible, but in the current version this would require code customizations. Currently listings are related by category, and location if you enabled Geolocation.

can you tell me the location where to set up the code?

Please use the Code Snippets plugin to add and manage custom PHP code snippets Code Snippets – WordPress plugin | WordPress.org

I meant where is the code itself with the settings to know which snippet to add

Unfortunately, there’s no simple code snippet for this, but if you’re familiar with customizations you can try using this action hook for altering the related listings query: hivepress/v1/models/listing/relate Action: hivepress/v1/models/{model_name}/relate | HivePress Hook Reference

If you create custom code snippets you can add them this way How to add custom code snippets - HivePress Help Center

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.