My problem is simple, I need a “home” link for my WP template, and the function get_home_url()
is simply returning the current url. So if I’m on "example.com/?cat=2"
, that’s the url I get for my home button .
Any ideas what I’m doing wrong? I’m pulling my hair out.
It’s just home_url(). So:
Will output the homepage of your WordPress installation.
Have you tried:
You need to echo that function, so it should be: