Hi Sam,
If I’m honest, it might be worth getting a developer in to help you with this. I simply don’t have enough time to look into it any further, and I don’t want you to be sitting around waiting for me to try and find time to help.
The original code works perfectly, and it’s definitely something that plugin does that changes the portfolio taxonomy to stop it working.
– Ed