Hi.
I have helped you change the portfolio details link to slug link.
For the meta description, I also have fixed that issue.
Please recheck it.
Regards.
Hi.
I have checked and found that issue with the title with the preg_replace function.
Now it will get the correct URL with your portfolio post alias.
Please recheck it.
Regards.