I’d like to add to the search page the number of likes and views a topic has received.
The json in https://site.com/search.json?q=whatever has the number of likes in the posts and for topics includes likes and views. I think it should be “easy” to pull that data out of the json payload and display it, but it’s still not easy for me.
What I was asking for more generally, is how to pull a field out of the json load and display it. Do I need javascript to access the number of likes that’s in the json load for the page?
Aha! That’s helpful, though for some reason the likes are not showing on that site when I sort by likes. They do here, though. I don’t see any CSS changes there.