Display a custom slug in URL depending on user variable
If I understand you well, I think you need to find a string like {fl or az} in the current URL and this can be done by exploding the current URL into pieces. If you confused about the code, we assigned and checked variables like {$url_path and $url_parts} inside if statement /* * NOTES: * … Read more