Where “taxonomy_name” is the name of the taxonomy and “term_name” is the name of the term (baseball).
If you want, you can always create a Page Link field from the backend and export it to PHP code from “Custom Fields > Tools” (PRO version) or “Custom Fields > Export” (Free version). That way you can see the code layout you need to update your code.
I hope this helps 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users