Hi Guys
I have been getting some help from the nice guys over at Jetpack in resolving why their sharing module will not work on event calendar pages..
I was given a bit of code which i put into my functions.php and works great on single event views, but not in my other views ( i use photo, map and month)
the code is a here: http://pastebin.com/5MAgTdD2
can anyone help me resolve this one? it would be much appreciated
I’m not sure what’s going on there, but a couple of points come to mind.
Ideally you should return from your filter function, rather than echoing – simplified example
I can only guess that sharing_display() is returning an empty string (or, for some reason, hasn’t been defined) on those views where it isn’t working, as the filter function itself certainly ought to be running … I’m afraid you would need to dig into Jetpack’s code or reach out to the authors again to work out which of those might be happening and why