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:
echo home_url();
Will output the homepage of your Wordpress installation.
Have you tried:
echo get_bloginfo('url')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With