Ghost Hunter Search - Display Featured Image

Has anyone been able to get GhostHunter to be able to display featured images?

The best information I can find suggests to use the item_prepocessor function as shown below.

item_preprocessor: function(item) {
            var ret = {};
            // Add feature image to results
            ret.feature_image = item.feature_image;
            return ret;

I have added this, but then don’t really understand what I add to the result_template to make it display. I’ve tried adding a few handlebar things like {{feature_image}}, {{img_url feature_image}}, but all it does is print that verbatim.

Anyone been able to get this to work?

1 Like