I have a link with a href which i want to redirect me to category i created.
EX: <a href="/page/category/">Button</a>
my category name: osten & my category id: 43
I have a link with a href which i want to redirect me to category i created.
EX: <a href="/page/category/">Button</a>
my category name: osten & my category id: 43
2
Answers
You can use
get_term_link
https://developer.wordpress.org/reference/functions/get_term_link/.
For that, if you have the ID, then you can pass it to that function.
Check the documentation for this function and see what argument you can pass it
Maybe this can help? You can pass either name or ID