FYI the code that is in the linked article throws an error if used as instructed by the post author. It looks like it was published in 2016 or earlier so might not work correctly with current PHP versions.
The article is useful and I should be able to glean the information that I need to fix this issue on my website. But maybe find a better article for future reference
…fails at several points. I can adapt the code to check that the array items are set but that then means that the variable $name is not set, which is referenced further down the function.
Can you give me some better insight in to how to make bricks recognise the new taxonomy slug that I set up using the ‘term_link’ filter, so that the taxonomy template loads instead of the 404 template? All I want is to change the taxonomy slug from fr-retreat-category/day-retreats/ to /day-retreats/ and have the taxonomy template that I have set up in Bricks to load for the new URL. The template works fine when tested without changing the slug with the ‘term_link’ filter.