Does anyone have an idea why my home_url() function gets the URL of the current page instead of the site address? (The site runs locally using MAMP.)
Since you didn't post actual code in your question, I can only speculate. However, a common problem is that, when calling
I'm guessing you have something like this:
Which renders like so:
...and would explain why the linked URL is the current page, rather than the expected URL for the site front page.
If so, change it to this: