Function Help: Home URL for Primary Domain and Sub-Domain
-
I have a question regarding WordPress functions as it relates to “home_url” for a primary domain and sub-domain.
Let’s say I have a blog on a sub-domain at “blog.domain.com”. On “blog.domain.com”, I have a “Home” text link in the navigation menu that I want to hyperlink to the homepage of the primary domain “domain.com”. What is the correct way to achieve this?
If I use the function “home_url” on the sub-domain, it will hyperlink to “blog.domain.com”, which is not what I want. Is there a function that will link it to the primary domain?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Function Help: Home URL for Primary Domain and Sub-Domain’ is closed to new replies.