Support » Plugin: WP Search with Algolia » Custom attributes not echo able within the hit template

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Everything looks good from my end. I just re-tested adding a new attribute to a WooCommerce product and then index it, and edit a template. It showed like expected.

    Are you sure you’re editing the correct template? Perhaps you’re overriding the template in question, but accidentally editing the original one? Or perhaps your customized template is in a location that’s not getting recognized as somewhere to check for custom templates.

    https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates#default-location-of-template-files

    Thread Starter curtisagitate

    (@curtisagitate)

    I know the template is correct as other changes are showing. E.g the echoing out of the post_date which was done as a test. But also the page title…

    I am still unable to get this data to show with {{ data.price }} despite seeing these attributes in algolia dashboard after indexing

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you have a link to a live site where this can be found at? I’m wondering about the data object coming in to the WP site, and if it has the properties, despite showing in the Algolia Dashboard.

    Thread Starter curtisagitate

    (@curtisagitate)

    I belive I have sorted it. I didn’t re-index ‘all posts’ (searchable_posts) only the products index.

    Not fully understanding what the ‘all posts’ index is but that has resolved it

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you referring to the “Autocomplete” settings page? or the “Search Page” one? I’m assuming the Autocomplete where I do see an “all posts”.

    You would have needed to re-index the “Search Page” one with the button at the top which is a different index from the Autocomplete index, from everything I’ve known and experienced.

    Regardless, sounds like you have things figured out now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom attributes not echo able within the hit template’ is closed to new replies.