I'd like to use AddPostRenderCallback in my SharePoint 2013 Display Template like this:
<!--#_
AddPostRenderCallback(ctx, function(){
alert(ctx.Title + "finished rendering!");
});
_#-->
However, the ctx.Title doesn't exist, and ctx.CurrentItem is null. What could be causing this? This is normal Content Search Web Part and I'm displaying blog articles, and in general the results work just fine.