• Resolved adcadesigns

    (@adcadesigns)


    First of thank you for this nice plugin.

    My question is, I would like to filter posts based on the relationship the posts have. example:

    1. We have a list of malls
    2. Mall 1, has shops and dining inside, to do this we use ACF relationship with ACF repeater to select which shops and dining are related to that mall.
    3. we added a search box using Typesense, but how do we filter the search to find only related shops or dining inside Mall 1 only?
    4. this has to be dynamic since per mall have its own list of shops with search box.

    Just to add to this how do we also alter the list of posts/shop as a slider instead of grid, i know i have to do it inside the template on the child theme. but how do i target that search box only. instead of all the search box will be changed?

    I hope i explained my question here correctly. and again thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @adcadesigns,

    If i read this correctly you would like to show,Shops and Dining according to the mall selected. The structure of the data is very important here.

    So can you please let me know what are the post types being indexed ?

    As for the slider – it would be quite difficult to do this – the instant search handles showing the listing, and as this is already another library – it would be quite difficult to show the listing in a slider.

    Thread Starter adcadesigns

    (@adcadesigns)

    Hello @digamberpradhan,

    Yes that is correct, so i created a custom post type Malls, Shop and Dining, inside the malls post, i created an ACF relationship to choose different types of shop and dining that are related or can be found on that mall. all of these are already indexed by the way. i need the typesense inside that mall to search only related shop or dining. just to add, these are separate search box for shop and dining, i was able to create the shop only search except it search for everything under shop but not the ones that i only selected in the acf relationship related to the post. Thank you

    Plugin Contributor digamberpradhan

    (@digamberpradhan)

    Hi @adcadesigns,

    I am assuming you are using Malls as a filter / facet to filter Shop and Dining. If so the relationship data needs to be in the Shops and Diners.

    So you’ll need to have the associated mall as a category / meta data for the Shop / Diner then you can use index Malls as the facet.

    If i can see a demo of the site / implementation i may be able to provide better suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search only related content on the post’ is closed to new replies.