Need help with a pluggable function

I have a pluggable function in my theme that uses post tags to display related posts. I would like the function to use post categories instead. With a little help from Panos, we tried modifying the theme's code and added the function to the child-theme's functions.php, but no joy.