get_home_url() just returns current URL

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.

Related posts

Leave a Reply

3 comments